
Sign up to save your podcasts
Or


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"
By Lazarus5
66 ratings
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"

1,940 Listeners

584 Listeners

75 Listeners

18 Listeners

15,518 Listeners

26 Listeners

2 Listeners

0 Listeners