Remix.run Logo
bob1029 11 hours ago

This seems like a good time to advertise the post/redirect/get pattern.

https://en.wikipedia.org/wiki/Post/Redirect/Get

Not strictly about hijacking back navigation but it can make experience less bumpy if you've got form submissions in the middle of the path.

karim79 11 hours ago | parent | next [-]

I'm a huge fan of this pattern (and as a greybeard). I honestly wonder if people think about such things this day and age where everything is react.

bob1029 10 hours ago | parent | next [-]

It's amazing how often highly-polished web infrastructure gets put into the trash in pursuit of narrow objectives like avoiding a full page load. Very few applications actually benefit from being a single page. You tend to lose a lot more than you gain in terms of UX.

koen_hendriks 10 hours ago | parent | prev [-]

There are frameworks that navigate like this. Laravel is the first that comes to mind. I think Django and Spring do this as well.

lxgr 5 hours ago | parent | prev [-]

TIL that this (or rather, the lack of this) is why some pages show that annoying "do you want to resubmit your post" notification, but not others, and the name for it. Thank you!