diff --git a/aqt/webview.py b/aqt/webview.py index 221d39678..e89e20c4a 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -56,6 +56,8 @@ class AnkiWebPage(QWebEnginePage): dict(a=line, b=msg+"\n"))) def acceptNavigationRequest(self, url, navType, isMainFrame): + if not isMainFrame: + return True # load all other links in browser openLink(url) return False