1
votes

In a Blazor based SPA, you must be able to stop the user navigating back using the back button in the browser. However, I can't find any information about how to do this.

In classic ASPX this was relatively simple, but how do you do it on a Blazor Application/Page? I've seen [NoCache] on Views, but that doesn't seem to apply to Blazor pages/components. The javascript window.history.forward() option sort of works, but it refreshes the page, and thus loses the form changes.

1

1 Answers

2
votes

Cancelling the navigation is not yet supported. See github issues :