AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
675 stars 30 forks source link

$router.from is inaccurate when clicking browser back button #93

Open jamauro opened 3 years ago

jamauro commented 3 years ago

Add $: console.log('router', $router)

  1. Start on an initial route, e.g."/"
  2. Click on <a href='/test'> to navigate to a new route.
  3. Click the browser back button

The $router object displays from: "/" instead of from: "/test".

I think this is a bug but let me know if I'm missing something.

AlexxNB commented 3 years ago

Thanks, I'll check this

jamauro commented 2 years ago

Any update on this one?