diff --git a/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-header-sections.element.ts b/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-header-sections.element.ts index 28d8a80778..89c0ffbb51 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-header-sections.element.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-header-sections.element.ts @@ -79,6 +79,13 @@ export class UmbBackofficeHeaderSectionsElement extends UmbLitElement { const clickedSectionAlias = manifest.alias; + // If the clicked section is the same as the current section, we just load the original section path to load the section root + if (this._currentSectionAlias === clickedSectionAlias) { + const sectionPath = this.#getSectionPath(manifest); + history.pushState(null, '', sectionPath); + return; + } + // Check if we have a stored path for the clicked section if (this.#sectionPathMap.has(clickedSectionAlias)) { const storedPath = this.#sectionPathMap.get(clickedSectionAlias);