Repository navigation
Replies: 3 comments 7 replies
|
I don't understand the problem. What makes it such that you can only redirect after a specific amount of time has passed? |
7 replies
|
Note that in HTMX 2.0.4 you need to add the |
0 replies
|
I didn't check, but I guess another way of solving this would be to add the head support extension and add a meta refresh header with a content value of "5;url=/url/to/redirect/to". Possibly more onerous but should eliminate the need for the extra /the/actual/redirect endpoint |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello guys,
After receiving an HTTP request 200 from the backend, we cannot redirect the actual page to another after some delay.
We need to use
HX-Trigger-After-Swapand write an event with it which is kind of too much just for a redirect.On the documentation here we have
HX-Redirectbut we should also haveHX-Redirect-Timeoutheader to make the job done in a more cleaner way.Let me know what you think.
All reactions