zenodo / zenodo-rdm

Zenodo, powered by InvenioRDM
https://zenodo.org
GNU General Public License v2.0
64 stars 29 forks source link

URL discoverability: redirect from truncated file URL to record page #984

Open nemobis opened 2 months ago

nemobis commented 2 months ago

As a user who received the deep link to a deposited file, like https://zenodo.org/records/896670/files/article.pdf, I want to be able to easily reach the description of the record, like https://zenodo.org/records/896670 .

Currently https://zenodo.org/records/896670/files/ and even https://zenodo.org/records/896670/ return HTTP 404, while they should redirect to https://zenodo.org/records/896670 .

Similarly, in well-configured DSpace instances, an URL like https://dspace.mit.edu/bitstream/handle/1721.1/76721/Implementing%20Open%20Access%20Policies%20Duranceau%20Kriegsman%20final%20published%20January%202013.pdf?sequence=1&isAllowed=y can be truncated to https://dspace.mit.edu/bitstream/handle/1721.1/76721/ and still redirect to https://dspace.mit.edu/handle/1721.1/76721 (the canonical resolution of http://hdl.handle.net/1721.1/76721 ).

nemobis commented 2 months ago

Hopefully doesn't depend on https://github.com/zenodo/zenodo-rdm/issues/148