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

Push to windows history state #49

Open
be4i opened this issue Jul 19, 2024 · 0 comments
Open

Push to windows history state #49

be4i opened this issue Jul 19, 2024 · 0 comments

Comments

@be4i
Copy link

be4i commented Jul 19, 2024

Hello,
I have a problem that i dont know how to overcome.I have a page that has filters and based on that filters list products and every time a filter is changed i want to update the history of the browser so when the user shares link or refresh the page all the filters will be applied.Right now i can't find a way to execute javascript from .net.I have created a workaround that intercepts the fetch method in javascript and after the request is completed looks for my custom header 'Hydro-Push-History' and pushes history if is present.

Maybe hydro should have some kind of mechanism for executing javascript as part of the request like when you could redirect the user or change the location(but that makes another request).

Maybe Location method should have a parameter that instructs hydro to change browser url but not make a new request.

I can contributed if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant