2 ms·
> Many websites still do not manage to properly make the back and forward button work, even after years. Yeah. Many (most?) JS client-side routers don't allow
by pier25 4y ago
> Many websites still do not manage to properly make the back and forward button work, even after years.
Yeah. Many (most?) JS client-side routers don't allow you to change the URL without reloading the current route, reset scroll, etc.
I started working on a toy router for Svelte precisely to fix this behavior.
https://github.com/PierBover/roots-svelte-router https://github.com/PierBover/roots-svelte-router
The project is abandoned though. I lost interest in client-side routing and focused on fullstack (SSR + hydration).