Remove "/report.html" in report URLs
Firefox saves as Zotero Report.html (localized) without it, which is fine.
This commit is contained in:
parent
ba1f69b4d5
commit
79504df5f8
2 changed files with 6 additions and 6 deletions
|
@ -53,7 +53,7 @@ var Zotero_Report_Interface = new function() {
|
|||
url += 'searches/' + source.key;
|
||||
}
|
||||
|
||||
url += '/items/report.html' + queryString;
|
||||
url += '/items' + queryString;
|
||||
|
||||
ZoteroPane_Local.loadURI(url, event);
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ var Zotero_Report_Interface = new function() {
|
|||
throw new Error('No items currently selected');
|
||||
}
|
||||
|
||||
var url = 'zotero://report/' + Zotero.API.getLibraryPrefix(libraryID) + '/items/report.html'
|
||||
var url = 'zotero://report/' + Zotero.API.getLibraryPrefix(libraryID) + '/items'
|
||||
+ '?itemKey=' + items.map(item => item.key).join(',');
|
||||
ZoteroPane_Local.loadURI(url, event);
|
||||
}
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue