www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 60e0d79e01bf83daf8682c0bc088fbeaba496198
parent 609657a8e435db9c4d3fcaf96502ac2835e08324
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat,  5 May 2018 01:19:38 -0400

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

That's only necessary for ZotFile URLs.

Diffstat:
Mcomponents/zotero-protocol-handler.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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