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? |
Beta Was this translation helpful? Give feedback.
-
Note that in HTMX 2.0.4 you need to add the |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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-Swap
and write an event with it which is kind of too much just for a redirect.On the documentation here we have
HX-Redirect
but we should also haveHX-Redirect-Timeout
header to make the job done in a more cleaner way.Let me know what you think.
Beta Was this translation helpful? Give feedback.
All reactions