diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 8c113d74a5..b16487b324 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -1883,7 +1883,15 @@ Zotero.Attachments = new function () { // Don't try the same normalized URL more than once var triedURLs = new Set(); function normalizeURL(url) { - return url.replace(/\?.*/, ''); + url = new URL(url); + for (let param of Array.from(url.searchParams.keys())) { + // Keep 'download' param for Atypon + if (param !== 'download') { + url.searchParams.delete(param); + } + } + url.searchParams.sort(); + return url.toString(); } function isTriedURL(url) { return triedURLs.has(normalizeURL(url));