Skip to content

Push to windows history state #49

Open
@be4i

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions