fix #5479: navigate back to correct item path after deleting custom URL#5491
fix #5479: navigate back to correct item path after deleting custom URL#5491guillermo-escire wants to merge 5 commits into
Conversation
|
Hi @guillermo-escire, |
lgeggleston
left a comment
There was a problem hiding this comment.
Hi! I've tested this approach and looks like it fixes the main problem ✔️ the Back button always returns to the functional UUID page, no 404s, and clicking on the item page from elsewhere still takes you to the current custom url.
However, I'm not sure about the approach here to always take the user to the UUID page. With this change, going "Back" from the Edit or Administer page will always mean going back to UUID url instead of current custom URL, which could also be confusing.
When I edit or delete dspace.customurl in Administer metadata and Save, it does show the new auto-generated dspace.customurl immediately. So before moving ahead with this solution, I want to check - do you have any thoughts on why there's a mismatch between the updated customurl and the one returned from getItemPageRoute, and if it would be possible to resolve that instead of replacing with uuid?
Thanks for your work on this!
|
Hi @lgeggleston, thanks for the feedback! The UUID approach is intentionally conservative, it guarantees no 404s in all cases. If the team prefers the reactive approach, we're happy to explore it in a follow-up PR. |
|
Hi @guillermo-escire, I'm sorry for the delay! Thanks for adding details about the alternative. Since this is a non-urgent bug fix and there's a possibility of confusion if we merge as-is, I think it may be best if we pause to gather additional developer opinions before moving forward with this or the itemRD$ reactivity path. |
References
Fixes #5479
Description
After deleting a custom URL (dspace.customurl) from an item via Administer, the "Back" button now correctly navigates to the item's UUID-based path instead of the deleted custom URL.
Instructions for Reviewers
List of changes in this PR:
Steps to test:
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.