Skip to content

"here" link on older record versions alert does not account for subpaths #4358

@aseyedia

Description

@aseyedia

Describe the bug

Image

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

  1. Host a DSpace instance at a subpath (i.e. www.website.com/dspace)
  2. Create an item.
  3. Create a newer version of that item and enable showing all versions of items in search results.
  4. 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

Type

Projects

Status

🏗 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions