diff --git a/src/lib/webview/webview.cpp b/src/lib/webview/webview.cpp index be52fbb47..1ca6b71c9 100644 --- a/src/lib/webview/webview.cpp +++ b/src/lib/webview/webview.cpp @@ -240,7 +240,7 @@ QWebElement WebView::activeElement() const bool WebView::isUrlValid(const QUrl &url) { // Valid url must have scheme and actually contains something (therefore scheme:// is invalid) - return url.isValid() && !url.scheme().isEmpty() && (!url.host().isEmpty() || !url.path().isEmpty()); + return url.isValid() && !url.scheme().isEmpty() && (!url.host().isEmpty() || !url.path().isEmpty() || url.hasQuery()); } QUrl WebView::guessUrlFromString(const QString &string)