Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSpace 7.6: Handle redirects not working when frontend runs under a nameSpace other than / #2517

Closed
ttoljamo opened this issue Sep 25, 2023 · 1 comment · Fixed by #2630
Closed
Assignees
Labels
bug claimed: Atmire Atmire team is working on this issue & will contribute back component: Collection Collection display or editing component: Community Community display or editing component: Item (Archived) Item display or editing
Milestone

Comments

@ttoljamo
Copy link

Describe the bug
In DSpace 7.6, handle redirects are not working when the frontend is configured to run under a nameSpace other than server root (e.g. example.com/dspace): the redirects lack the nameSpace context.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Community
  2. Navigate to the Community's page
  3. Click on the "Permanent URI for this community" link: e.g. https://example.com/dspace/handle/123456789/9.
  4. Error: The redirect lands us on a page that does not exist: e.g. https://example.com/communities/e0703287-3079-42af-aa42-7b2754d0eba1
  5. Edit the URL by hand to add the nameSpace to get to the working page: https://example.com/dspace/communities/e0703287-3079-42af-aa42-7b2754d0eba1

Expected behavior
The redirect should acknowledge the nameSpace configuration.

This issue is regression: I tested this with DSpace 7.5 on the same server, with the same apache proxy settings, and the redirect works swimmingly.

Related work
Could this be related to #2265 and #2331?

@ttoljamo ttoljamo added bug needs triage New issue needs triage and/or scheduling labels Sep 25, 2023
@alanorth
Copy link
Contributor

Hi @ttoljamo, I can't confirm the bug since I'm not using a custom namespace, but this recent patch fixes other issues with custom namespaces.

@alexandrevryghem alexandrevryghem added component: Item (Archived) Item display or editing component: Community Community display or editing component: Collection Collection display or editing claimed: Atmire Atmire team is working on this issue & will contribute back and removed needs triage New issue needs triage and/or scheduling labels Nov 11, 2023
@alexandrevryghem alexandrevryghem self-assigned this Nov 11, 2023
@tdonohue tdonohue added this to the 7.6.1 milestone Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug claimed: Atmire Atmire team is working on this issue & will contribute back component: Collection Collection display or editing component: Community Community display or editing component: Item (Archived) Item display or editing
Projects
Development

Successfully merging a pull request may close this issue.

4 participants