bb925723fd
Rather than requiring translators to explicitly set a referrer, as proposed in #772 and #1375, this simply sets it to the URL where the save button was triggered. This fixes the Project Euclid example in #772. It's possible it won't fix all cases, since the translator might build the URL manually or via an intermediate page, but hopefully it will fix the majority of cases. I guess there's a possibility that this would break something that currently works, but it's hard to imagine a site would block based on the wrong referrer from the right site and not block on no referrer. Unlike #1375, this doesn't bother with the referrer for native downloads (e.g., snapshots or images). The former probably don't need it, and the latter should probably be switched to use `saveURI()` anyway. This might also fix zotero/translators#523 (SSRN) if the translator allowed it. Closes #1375 |
||
---|---|---|
.. | ||
zotero | ||
zotero-platform |