Skip to content

Conversation

@madsrasmussen
Copy link
Contributor

@madsrasmussen madsrasmussen commented Sep 4, 2025

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:

  • Ensure that when navigating between sections, the last visited path is retained.
  • Ensure that when using Ctrl + click, the regular section path opens in a new tab.

Copilot AI review requested due to automatic review settings September 4, 2025 19:22
Copy link
Contributor

Copilot AI left a 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

@madsrasmussen madsrasmussen changed the title Redirect to the last visited path when navigating between sections Feature: Redirect to the last visited path when navigating between sections Sep 4, 2025
Copy link
Member

@leekelleher leekelleher left a 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! 🚀

@leekelleher leekelleher merged commit 3b6be8e into main Sep 15, 2025
27 checks passed
@leekelleher leekelleher deleted the v16/feature/remeber-the-last-visited-section-path branch September 15, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar Menu state not kept when navigating between sections

3 participants