hx-pod

Advanced htmx: hx-push-url and hx-replace-url


Listen Later

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"

...more
View all episodesView all episodes
Download on the App Store

hx-podBy Lazarus

  • 5
  • 5
  • 5
  • 5
  • 5

5

6 ratings


More shows like hx-pod

View all
Odd Lots by Bloomberg

Odd Lots

1,940 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

584 Listeners

Django Chat by William Vincent and Carlton Gibson

Django Chat

75 Listeners

Notes On Work - by Caleb Porzio by Caleb Porzio

Notes On Work - by Caleb Porzio

18 Listeners

The Rest Is History by Goalhanger

The Rest Is History

15,518 Listeners

Mostly Technical by Ian Landsman and Aaron Francis

Mostly Technical

26 Listeners

Talking Businessly by Daniel Coulbourne & John Drexler

Talking Businessly

2 Listeners

Datastar – The hypermedia framework. by Datastar

Datastar – The hypermedia framework.

0 Listeners