Skip to content

Blazor Webassembly: Unable to supress URL rewriting #38251

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

Closed
xanth opened this issue Nov 10, 2021 · 8 comments
Closed

Blazor Webassembly: Unable to supress URL rewriting #38251

xanth opened this issue Nov 10, 2021 · 8 comments
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@xanth
Copy link

xanth commented Nov 10, 2021

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

I need navigation but sadly the URL must not be modified and as far as I can see there is no hook to disable this functionality.

Describe the solution you'd like

I'd like the ability to disable url rewriting.

Additional context

@javiercn
Copy link
Member

@xanth thanks for contacting us.

Are you asking for hash based routing?

@javiercn
Copy link
Member

This issue is a dupe of #6175

@javiercn javiercn added area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue labels Nov 10, 2021
@ghost ghost added the Status: Resolved label Nov 10, 2021
@xanth
Copy link
Author

xanth commented Nov 10, 2021

@javiercn no I want entirely virtual routing stored in some internal state object.

@xanth
Copy link
Author

xanth commented Nov 10, 2021

Totally open to alternative/elegant solutions but at the moment the best solution I can see is embedding it in an iframe as a means of cordoning the real URL off.

@javiercn
Copy link
Member

@xanth thanks for the additional details.

That's not something we have plans to support.

@xanth
Copy link
Author

xanth commented Nov 10, 2021

@javiercn how would one nest a Blazor app besides some other app without conflicting with the other apps routing?

@javiercn
Copy link
Member

@xanth you wouldn't use our routing system for that.

Our routing system requires a piece of observable state in the URL, and that's a core feature of the system, so its not something we plan to change.

If you want to have a widget that can be in multiple states, then you can track that yourself, within local storage, a cookie or whatever solution you see fit.

@xanth
Copy link
Author

xanth commented Nov 10, 2021

Wouldn't it be better if the routing subsystem was plugable in such a way that the URL sourcing and syncing was configurable?

@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants