
Sign up to save your podcasts
Or


Override your "hx-swap=" attribute.
Correct your hx-swap mistake! Do it now!!!
Decide from your server side what url the user sees!
https://htmx.org/headers/hx-push-url
Speaking with a prolific developer who recently switched from React to htmx
Redirect your users to a new page from your back-end server in SPA-mode (no refresh for them)
https://htmx.org/headers/hx-location/
This header is to make sure your system loads the full page when
1) You are suing hx-push-url to work with the url bar
2) Users click the back button.
3) The full page cached history snapshot isn't there
Useful links mentioned:
https://github.com/bigskysoftware/htmx/issues/497
https://htmx.org/docs/#history
The htmx request header that tells you
EXACTLY where the user is making the request from
The full url string with all ids and params
hx-prompt="what's your favorite size turtle?"
Request Headers:
Hx-Prompt: small
From the publisher's feed