Navigationhandling

I want to navigate to the next node in the tree structure using a workspace action.
I have an action button called Next Page and have implemented the logic in the execute action, which works fine. However, it forces a reload of the entire page.

Is there any way to handle navigation without causing a complete reload of the page, similar to clicking on an element in the tree structure?

override async execute() {
// data gets fetched
                    window.location.href = `/umbraco/section/content/workspace/document/edit/${data}/invariant/tab/content`;
    }

Have you tried manipulate the window.history?

Try:
window.history.pushState({}, '', url);

It works fine in the Console, so if you are lucky it also works in your code replacing the window.location.href

2 Likes

it works
That Is Awesome GIFs | Tenor

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.