zotero://open handler: Decode CFI and selector (#3955)

This commit is contained in:
Abe Jellinek 2024-04-10 16:54:04 -07:00 committed by GitHub
parent 878fc20cec
commit 398454f85b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
};
}