-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Feature: Redirect to the last visited path when navigating between sections #20084
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
Feature: Redirect to the last visited path when navigating between sections #20084
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements functionality to redirect users to their last visited path when navigating between backoffice sections in Umbraco CMS. Instead of always redirecting to the default section landing page, it stores and retrieves the previous path for each section.
- Adds path tracking to store the last visited path for each section
- Implements custom click handling to redirect to stored paths or default section paths
- Replaces default browser navigation with programmatic history manipulation
src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-header-sections.element.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-header-sections.element.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-header-sections.element.ts
Show resolved
Hide resolved
…ffice-header-sections.element.ts Co-authored-by: Copilot <[email protected]>
leekelleher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested out, works as expected! 🚀
Fixes: #17076
This PR introduces a feature to store the last visited item/path for a section, so that when navigating back to the same section, the user will be redirected to that path.
What to test: