-
Notifications
You must be signed in to change notification settings - Fork 474
Description
Describe the bug
The "here" link in the alert that indicates that this item is not the latest version does not account for subpaths. Our PEDSpace instance is at pedsnet.org/metadata, but when we click on that link, we are redirected to pedsnet.org/entities/..., not pedsnet.org/metadata/entities/..., which, obviously, produces a 404.
You can clearly observe the issue on our public site here.
I've traced this issue to item-page-routing-paths.ts
, though I'm not entirely sure if that's the root of the issue. Hopefully it's not a user error, but everything else about the site works as expected.
If I were to fix this on my own, I would find a way to pull in the subpath from the configuration file somehow and use that for the URI, though to be quite honest, again, I'm not entirely sure if this is the issue.
To Reproduce
- Host a DSpace instance at a subpath (i.e. www.website.com/dspace)
- Create an item.
- Create a newer version of that item and enable showing all versions of items in search results.
- Click on the "here" link where it says "This is not the latest version of this item. The latest version can be found here."
Expected behavior
What would be nice is if this link inserted the subpath before the base domain name e.g. website.com/dspace/item instead of website.com/item
Metadata
Metadata
Assignees
Labels
Type
Projects
Status