Skip to content

Response from HX-Location should respect HX-Push-Url header #3115

Open
@devashishdxt

Description

@devashishdxt

I have a scenario where I set the HX-Location header to redirect the client to other page (assume /x). In some cases, the response (of /x) could contain HX-Push-Url header (assume /y) which is not being respected, i.e., the page url is still same as the url in HX-Location header (/x).

Is there a way to push the url in HX-Push-Url (/y) header of response in browser history after the redirect using HX-Location header?

Metadata

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