You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is great help for navigation within SharePoint site. I've been using it for my SPFx extension, where I'm checking the URL and if the user is allowed to land there or not.
Now you library keeps the history, which is problematic when you don't want to let user come back to the page he was navigated away.
Would you consider adding a new property for replace|push the URL to the browsers history?
// Adds the new navigation state to the browser history
// history.pushState(navState, null, link); // keep the last URL - original
history.replaceState(navState, null, link); // do not leave it in history - my case
The text was updated successfully, but these errors were encountered:
This library is great help for navigation within SharePoint site. I've been using it for my SPFx extension, where I'm checking the URL and if the user is allowed to land there or not.
Now you library keeps the history, which is problematic when you don't want to let user come back to the page he was navigated away.
Would you consider adding a new property for replace|push the URL to the browsers history?
The text was updated successfully, but these errors were encountered: