diff --git a/aqt/editor.py b/aqt/editor.py index 64388686d..b9e3feb6f 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -1098,8 +1098,8 @@ class EditorWebView(AnkiWebView): if ext not in pics and ext not in audio: return if url.lower().startswith("file://"): - url = url.replace("#", "%23") url = url.replace("%", "%25") + url = url.replace("#", "%23") # fetch it into a temporary folder self.editor.mw.progress.start( immediate=True, parent=self.editor.parentWindow)