Skip to content

Keep hmtx-request class while redirecting #1925

@ouhndelof

Description

@ouhndelof

I am using the htmx-request class to show a loading indicator to the user when they issue a request. However, when the user receives the HX-Redirect header, a redirect is started and the browser takes over showing a loading indicator. Is there a simple way to keep the htmx-request class when the HX-Redirect header is received, so that the original loading indicator can be shown from the request is sent until the redirect has happened?

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