I have a Blazor Web application project on .NET 8 with autorendering. In the client project I've created a page with page parameters like this:
Html:
@page "/"@page "/{parent?}"@page "/{parent?}/{categoryUrl?}"@page "/{parent?}/{categoryUrl?}/{url?}"@page "/{parent?}/{categoryUrl?}/{url?}/{pId?}"@page "/{parent?}/{categoryUrl?}/{url?}/{suburl?}/{pId?}"@page "/{parent?}/{categoryUrl?}/{url?}/{pId?}/{month:int?}/{year:int?}" @rendermode InteractiveAutoCode:
[Parameter]public string? url { get; set; }[Parameter]public string? suburl { get; set; }[Parameter]public string? parent { get; set; }[Parameter]public string? categoryUrl { get; set; }[Parameter]public string? pId { get; set; }[Parameter]public int? month { get; set; }[Parameter]public int? year { get; set; }I then use OnParametersSetAsync() to create logic for what happens with the parameters.
The strange thing is that the auto generated stylesheet, [project].styles.css, is showing up as the parent parameter even when the url is on the baseUrl (https://localhost:7215/) and the parent parameter is empty (see attached image).
Why is this and how can it be fixed?
