Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not found routes causes Blazor WASM to reload. #58834

Open
1 task done
julianadormon opened this issue Nov 8, 2024 · 3 comments
Open
1 task done

Not found routes causes Blazor WASM to reload. #58834

julianadormon opened this issue Nov 8, 2024 · 3 comments
Labels
area-blazor Includes: Blazor, Razor Components Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. Status: No Recent Activity

Comments

@julianadormon
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

This is in regard to NotFound route causes reload #23100

Not found routes causes Blazor WASM to reload.

Describe the solution you'd like

As per the conversation on the previous issue, it was closed because "this is by design" with the reason that this would give the server a chance to handle the not found response.

This is fine, however I am using a Blazor wasm standalone project and this is happening. This is jarring and not a great user experience.
I feel like the user is getting penalized with the wasm loading screen again.

Thanks for your consideration.

Additional context

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Nov 8, 2024
@javiercn
Copy link
Member

javiercn commented Nov 8, 2024

@julianadormon thanks for contacting us.

You can define a page with a catch-all route

NotFound.razor

@page "{**slug}
...

and implement your own logic within it to handle any fallback path not handled by your standalone wasm app.

@javiercn javiercn added the Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. label Nov 8, 2024
Copy link
Contributor

Hi @julianadormon. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

See our Issue Management Policies for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. Status: No Recent Activity
Projects
None yet
Development

No branches or pull requests

2 participants