Blazor Server - Authentification template with interactive rendering
Hello guys,
I am quite a newbie with web developing. I created a Blazor server app with user authentification and global rendering mode using the template. I then created my design and add some stuff like Mudblazor components to my MainLayout. The authentification pages from the template include this attribute [ExcludeFromInteractiveRouting]. As far as I could understand this leads to static rendering when pages like Login or Register is opened.
The router render mode gets configured through the HttpContext:
<Routes u/rendermode="PageRenderMode" />
private IComponentRenderMode? PageRenderMode =>
HttpContext.AcceptsInteractiveRouting() ? InteractiveServer : null;
My problem is, that I dont want the whole page to get static rendered because as I told in my MainLayout I have Mudblazor components which only work in interactive rendering. When I change the global rendering mode to interactive rendering then the authentification pages doesnt work anymore.
How can I solve this problem?
Posted Dec 9, 2025, 9:35 AM UTC