Describe the bug
When using a script blocker extension like uBlock Origin in Firefox, bitstream downloads do not work on DSpace sites with enabled Matomo integration. Instead of initiating the file download, the page eventually runs into a timeout.
Disabling the script blocker or whitelisting the DSpace domain resolves the issue and downloads work as expected.
To Reproduce
Steps to reproduce the behavior:
- Setup Matomo Tracking for the Dspace Site
- Install uBlock Origin (or similar script blocker) in Firefox
- Navigate to an item with a bitstream
- Click the download link
Ecpected behavior
The bitstream download should complete successfully, even if the Matomo tracking request is blocked.
Question
Is this behavior intentional, perhaps due to how the download mechanism is implemented? I'm raising this because some users may have script blockers enabled by default and might not immediately realize they need to whitelist the DSpace site to download files.
Ideally, the download should not depend on the Matomo tracking URL being reachable – the tracking could either fail silently or be handled asynchronously without blocking the actual file transfer. I am wondering whether this could be a deliberate design choice?
Describe the bug
When using a script blocker extension like uBlock Origin in Firefox, bitstream downloads do not work on DSpace sites with enabled Matomo integration. Instead of initiating the file download, the page eventually runs into a timeout.
Disabling the script blocker or whitelisting the DSpace domain resolves the issue and downloads work as expected.
To Reproduce
Steps to reproduce the behavior:
Ecpected behavior
The bitstream download should complete successfully, even if the Matomo tracking request is blocked.
Question
Is this behavior intentional, perhaps due to how the download mechanism is implemented? I'm raising this because some users may have script blockers enabled by default and might not immediately realize they need to whitelist the DSpace site to download files.
Ideally, the download should not depend on the Matomo tracking URL being reachable – the tracking could either fail silently or be handled asynchronously without blocking the actual file transfer. I am wondering whether this could be a deliberate design choice?