A bug?? -> .NET 8 - the page 'error' in the new Blazor Web App (WebAssembly) redirects to 404

aleksw 6 Reputation points
2024-02-24T19:39:50.5733333+00:00

If you create the new Blazor Web App (WebAssembly) in .NET 8 you will see that structure: blaz2

Now run application and open "/error" page, firstly you will see the error page: blaz3

and then you will be redirected to 404 page: blaz4

Is this a bug ??

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,472 questions
{count} vote

3 answers

Sort by: Most helpful
  1. aleksw 6 Reputation points
    2024-02-25T05:14:37.09+00:00

    @AgaveJoe I checked on my second computer - the same problem BUT the problem exists ONLY if you choose Global interactivity location: global

    0 comments No comments

  2. aleksw 6 Reputation points
    2024-02-25T05:45:54.71+00:00

    Home-ezgif.com-video-to-gif-converter (1)


  3. Florin Paraschivescu 0 Reputation points
    2024-03-15T15:15:37.9266667+00:00

    hey,

    they way I manage to make use of 404 to work correctly when RenderMode.InteractiveServer is set was by adding back the <NotFound> tag in Routes.razor. They say that this should no longer be used (only for WASM or so). Hope this helps.

    User's image

    0 comments No comments