When the response contains "HX-Redirect" the hx-indicator element is not deactivated. (htmx-v2)
Author: VisionovaDevCreated Feb 14, 2025Updated Sep 15, 2026
When the response contains "HX-Redirect" the hx-indicator element is not deactivated. The HX-Redirect header is set to redirect the browser to another page so someone could be think that hx-indicator element deactivation is not needed, but if the redirect is toward a file download link the browser page is not reloaded so the hx-indicator element should be deactivated.
Source: bigskysoftware/htmx