Skip to content

Beginner question: how do I stop my login form from appearing on my home page? #3183

Answered by Telroshan
andrewah64 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, you likely want to use the HX-Redirect header here, instead of doing a standard HTTP redirection, see the docs about the latter

the response headers above are not provided to htmx for processing with 3xx Redirect response codes like HTTP 302 (Redirect). Instead, the browser will intercept the redirection internally and return the headers and response from the redirected URL. Where possible use alternative response codes like 200 to allow returning of these response headers.

Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrewah64
Comment options

Answer selected by Telroshan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants