Fix #4734: Normalize contextPath handling in bitstream download route - #4735
Fix #4734: Normalize contextPath handling in bitstream download route#4735hernanhlagos wants to merge 2 commits into
Conversation
|
@hernanhlagos : Thanks for the PR! Just a note that this seems to be failing a few tests. It may just be that the tests require updates, not exactly sure. But, you should be able to see these failures locally if you run |
|
Hi @hernanhlagos, |
|
After a delay on my side and after reviewing the current state of the branches, I found that this PR is now outdated against When I originally opened it, the target branch was still aligned with the version where I reproduced the issue. Since then, the code has changed significantly in However, I have confirmed that the issue still persists in I'll close this PR and open a new one based directly on the current Thanks for reviewing the PR and sorry for the delay in following up. |
DSC-2839 Approved-by: Fapohunda, Adamo
References
Description
This PR fixes the generation of bitstream download URLs when DSpace Angular
is deployed under a custom context path (e.g.
/repository).Previously, the
environment.ui.nameSpacewas ignored, resulting in broken download links (404 Not Found).Instructions for Reviewers
List of changes in this PR:
environment.ui.nameSpacebefore building the download route/is omitted but custom paths (e.g./repository) are correctly prependedHow to test
http://localhost:4000/repository.http://localhost:4000/repository/bitstreams/<uuid>/downloadhttp://localhost:4000/bitstreams/<uuid>/download→ results in404 Not Found./) and subpath deployments.Checklist
mainbranch of code.npm run lint.npm run check-circ-deps).