Go offline with the Player FM app!
Advanced htmx: hx-push-url and hx-replace-url
Manage episode 402718233 series 3550795
Push your ajax route to the url bar! Now you've got access to the back button again.
.. but what happens when you refresh?
Work with the browser history on any htmx request with hx-push-url and hx-replace-url.
PUSH it to the Browser history stack:
hx-get="/account/details" hx-push-url="true"
REPLACE the current browser history stack:
hx-get="/account/details" hx-replace-url="true"
73 episodes
Manage episode 402718233 series 3550795
Push your ajax route to the url bar! Now you've got access to the back button again.
.. but what happens when you refresh?
Work with the browser history on any htmx request with hx-push-url and hx-replace-url.
PUSH it to the Browser history stack:
hx-get="/account/details" hx-push-url="true"
REPLACE the current browser history stack:
hx-get="/account/details" hx-replace-url="true"
73 episodes
All episodes
×Welcome to Player FM!
Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.