From 398454f85bfb93fc8801bcfa14b88879013c1054 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 10 Apr 2024 16:54:04 -0700 Subject: [PATCH] zotero://open handler: Decode CFI and selector (#3955) --- chrome/content/zotero/ZoteroProtocolHandler.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/ZoteroProtocolHandler.jsm b/chrome/content/zotero/ZoteroProtocolHandler.jsm index c50628f3e1..1fb8f6e3cc 100644 --- a/chrome/content/zotero/ZoteroProtocolHandler.jsm +++ b/chrome/content/zotero/ZoteroProtocolHandler.jsm @@ -1205,13 +1205,13 @@ function ZoteroProtocolHandler() { location.position = { type: 'FragmentSelector', conformsTo: 'http://www.idpf.org/epub/linking/cfi/epub-cfi.html', - value: cfi + value: decodeURIComponent(cfi) }; } else if (sel) { location.position = { type: 'CssSelector', - value: sel + value: decodeURIComponent(sel) }; }