You could try using the htmx history support stuff...
# htmx-general
t
You could try using the htmx history support stuff to handle history better. I'm not sure there's a way to force a page refresh only when the user presses the back button