Don't allow page path component for new-style zotero://open-pdf URLs

That's only necessary for ZotFile URLs.
This commit is contained in:
Dan Stillman 2018-05-05 01:19:38 -04:00
parent 609657a8e4
commit 60e0d79e01

View file

@ -1030,10 +1030,10 @@ function ZoteroProtocolHandler() {
var router = new Zotero.Router(params); var router = new Zotero.Router(params);
// All items // All items
router.add('library/items/:objectKey/:pathPage', function () { router.add('library/items/:objectKey', function () {
params.libraryID = userLibraryID; params.libraryID = userLibraryID;
}); });
router.add('groups/:groupID/items/:objectKey/:pathPage'); router.add('groups/:groupID/items/:objectKey');
// ZotFile URLs // ZotFile URLs
router.add(':id/:pathPage', function () { router.add(':id/:pathPage', function () {