kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 194 forks source link

use of FlowRouter.current().context.hash #518

Closed verdavaine closed 8 years ago

verdavaine commented 8 years ago

I am using FlowRouter.current().context.hash to detect reactively hash inside URL (with FlowRouter.watchPathChange()) When some hash is added to URL, it works But when clicking on back button, FlowRouter.current().context.hash remains unchanged although hash has disappeared from URL

It worked reactively with Iron-Router using Iron.Location.get().href.indexOf('#')

arunoda commented 8 years ago

There was a bug and we fixed it in the FlowRouter SSR version. That's the next version we are working on.

You can get the hash like this: FlowRouter.current().hash

iamparthaonline commented 4 years ago

Now it works like this actually - FlowRouter.current().context.hash