Skip to content

Cannot navigate back to current item path after deleting custom URL #5479

@lgeggleston

Description

@lgeggleston

Describe the bug

When deleting a custom URL via Administer Item, it does correctly auto-generate a new url for the item page. However, it isn't possible to navigate to the new item page directly from Administer anymore. The "Back" button returns to the originally set custom url.

Reported by Grazia Quercia: "After deleting the metadata from the administration page, the back button leads to the right Person item page, but with URL I see remains the custom one. If I refresh, a 404 error is returned (correct cause that URL doesn't exist anymore). To visualize the auto-generated URL I have to navigate somewhere else, then return on the Person item page. There, the URL I see is the auto-generated one.

To Reproduce

Steps to reproduce the behavior:

  1. Go to a Person page with custom URL set
  2. Get to metadata via menu on top right -> Administer.
  3. Delete dspace.customurl from the metadata and Save.
  4. Click on "Back" to return to the item page.
  5. Observe that it takes you to the original custom url still.
    You can access the correct new auto-generated url by navigating to the item again via search etc., but not directly.

Expected behavior

Clicking "Back" from the Administer page takes you to the correct (and current) item page path - or there is another obvious way to access the correct item page from Administer.

Related work

Merger feature: Custom URLs

Metadata

Metadata

Labels

DSpace-CRIS mergerThis ticket/PR relates to the merger of DSpace-CRIS into DSpace.bugtestathonReported by a tester during Community Testathon

Type

Projects

Status

🏗 In Progress

Status

🏗 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions