OpenGamma/RouteMap

Clicking on the same hash link doesn't fire the event

Closed this issue · 4 comments

When I click on the same link twice, it doesn't call the routes.handler function.

If you're using it on the client-side with a hashchange observer, then clicking the same like twice in a row won't change the hash, so the event doesn't fire twice. This isn't something RouteMap is doing, it's just the prescribed behavior of the hashchange event.

What can be done to handle this? Also if I change some HTML on page without changing the hash, it doesn't log this page change in history and cannot be retrieved by back button. Any help or guidance to correct resource would be grateful.

The only things that can be added to your browser history are URLs or
hashes. So if you need every change to the HTML to be registered in
history, then you need to tie each change to a new URL.

On Dec 26, 2011, at 13:17, ismusidhu
reply@reply.github.com
wrote:

What can be done to handle this? Also if I change some HTML on page without changing the hash, it doesn't log this page change in history and cannot be retrieved by back button. Any help or guidance to correct resource would be grateful.


Reply to this email directly or view it on GitHub:
#1 (comment)

Ok. Thanks very much.