diff --git a/aqt/webview.py b/aqt/webview.py index beb4a8ecd..cc0fce5a0 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -68,6 +68,9 @@ class AnkiWebPage(QWebEnginePage): def acceptNavigationRequest(self, url, navType, isMainFrame): if not isMainFrame: return True + # data: links generated by setHtml() + if url.scheme() == "data": + return True from aqt import mw # ignore href=# if url.toString().startswith(mw.serverURL()):