-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
When navigating from an Interactive page to a Server-Side Rendered (SSR) page in a Blazor web application, a hard reload is supposed to be triggered based on a check within the SSR layout file. This behavior works as expected when navigating through links or button clicks. However, if the user navigates from an Interactive page to an SSR page using the browser's back button, the hard reload mechanism fails to execute.
Additional Context
- The SSR page is located in the server project.
- The issue has been reproduced in a Blazor web app with identity using global interaction mode in Visual Studio template.
Expected Behavior
Upon navigating from an Interactive page to an SSR page, whether through direct navigation or via the browser's back button, the hard reload should be consistently triggered based on the HTTPContext check in the SSR layout file.
Steps To Reproduce
- Navigate from an SSR page to an Interactive page.
- Use the browser's back button to return to the previous SSR page.
- Observe that the hard reload mechanism is not triggered.
Steps to reproduce in Visual studio template project (Blazor Web App With Identity & Global Interaction)
- Create new project from Visual Studio template.
- Run the project
- Navigate to counter page
- Navigate to login page
- Now press browser back button
Exceptions (if any)
No response
.NET Version
8.0.200