diff options
Diffstat (limited to 'src/browsertab.cpp')
| -rw-r--r-- | src/browsertab.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 136a01f..1180f11 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -668,12 +668,19 @@ void BrowserTab::on_inputRequired(const QString &query, const bool is_sensitive) } } -void BrowserTab::on_redirected(const QUrl &uri, bool is_permanent) +void BrowserTab::on_redirected(QUrl uri, bool is_permanent) { Q_UNUSED(is_permanent); this->network_timeout_timer.stop(); + // #79: Handle non-full url redirects + if (uri.isRelative()) + { + uri.setScheme(current_location.scheme()); + uri.setHost(current_location.host()); + } + if (redirection_count >= kristall::options.max_redirections) { setErrorMessage(QString("Too many consecutive redirections. The last redirection would have redirected you to:\r\n%1").arg(uri.toString(QUrl::FullyEncoded))); |
