erikringsmuth / app-router

Router for Web Components
https://erikringsmuth.github.io/app-router/
MIT License
610 stars 83 forks source link

Update previous url when only hash changed #122

Closed dmytro-dymarchuk closed 9 years ago

dmytro-dymarchuk commented 9 years ago

When only hash changed (example: from '#hash1' to '#hash2'), previous url didn't update. And when we again changed hash to '#hash1', we have behaviour such as we changed not only hash, because condition url.hash !== previousUrl.hash isn't true (we have: url.hash == '#hash1' and previousUrl.hash == '#hash1').

erikringsmuth commented 9 years ago

Cool! Makes sense.

dmytro-dymarchuk commented 9 years ago

Can you tag this changes so we can use it on a project?

erikringsmuth commented 9 years ago

Tagged it as v2.6.1. Good to go!

dmytro-dymarchuk commented 9 years ago

Thank You!