Remove "/report.html" in report URLs

Firefox saves as Zotero Report.html (localized) without it, which is
fine.
This commit is contained in:
Dan Stillman 2016-04-12 18:59:46 -04:00
parent ba1f69b4d5
commit 79504df5f8
2 changed files with 6 additions and 6 deletions

View file

@ -119,16 +119,16 @@ function ZoteroProtocolHandler() {
var router = new Zotero.Router(params);
// Items within a collection or search
router.add('library/:scopeObject/:scopeObjectKey/items/report.html', function () {
router.add('library/:scopeObject/:scopeObjectKey/items', function () {
params.libraryID = userLibraryID;
});
router.add('groups/:groupID/:scopeObject/:scopeObjectKey/items/report.html');
router.add('groups/:groupID/:scopeObject/:scopeObjectKey/items');
// All items
router.add('library/items/report.html', function () {
router.add('library/items', function () {
params.libraryID = userLibraryID;
});
router.add('groups/:groupID/items/report.html');
router.add('groups/:groupID/items');
// Old-style URLs
router.add('collection/:id/html/report.html', function () {