-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Which Umbraco version are you using?
16.3
Bug summary
I our projekt we have gone from 16.2 to 16.3 and began to recive bug in our internal system where when they click between sections it keep the state.
First of all this feature is really awesome, but it is a bit to aggrasive, on the way there is no way to turn it off.
Our project uses custom sections alot, as the whole backoffice is near only custom sections.
"Min side"
"Søgning"
"overblik"
You click "Søgning" search for content and click on one of the results. you come to
"Søgning -> Edit view". when you is done inside the editing view and clicks on "overblik" to see something, and the needs to search for a new. You clikc on the "Søgning" but then you get to the previeus articel.
In native umbraco again it is a awesome but for our sections not.
i was thinking is the "MetaSection" type could be extended to contain a exstra property.
"useNavigatingState"?: boolean;
So in the
backoffice-header-sections.element.ts = #onSectionClick(event: PointerEvent, manifest: ManifestSection | undefined)
have this
#onSectionClick(event: PointerEvent, manifest: ManifestSection | undefined) {
// Let the browser handle the click if the Ctrl or Meta key is pressed
if (event.ctrlKey || event.metaKey) {
return;
}
event.stopPropagation();
event.preventDefault();
// useNavigatingState is set false, then the navigation store state is disabled for the current sections
if (!(manifest?.meta.useNavigatingState ?? true)) {
const sectionPath = this.#getSectionPath(manifest);
history.pushState(null, '', sectionPath);
}
....
}
Specifics
No response
Steps to reproduce
Have custom sections where you navigate between the sections and it keeps the navigation step but want to come to the PAHT only
Expected result / actual result
Can turn of the navigation state store for custom sections to have more flexsibilty