File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/Umbraco.Web.UI.Client/src
apps/backoffice/components
packages/core/section/extensions Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,9 @@ export class UmbBackofficeHeaderSectionsElement extends UmbLitElement {
7878
7979 const clickedSectionAlias = manifest . alias ;
8080
81- // If the clicked section is the same as the current section, we just load the original section path to load the section root
82- if ( this . _currentSectionAlias === clickedSectionAlias ) {
81+ // If preventUrlRetention is set to true then go to the section root.
82+ // Or if the clicked section is the current active one, then navigate to the section root
83+ if ( manifest ?. meta . preventUrlRetention === true || this . _currentSectionAlias === clickedSectionAlias ) {
8384 const sectionPath = this . #getSectionPath( manifest ) ;
8485 history . pushState ( null , '' , sectionPath ) ;
8586 return ;
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ export interface ManifestSection
1212export interface MetaSection {
1313 label : string ;
1414 pathname : string ;
15+ preventUrlRetention ?: boolean ;
1516}
You can’t perform that action at this time.
0 commit comments