Commit 5b10ab7f authored by Thomas Lechauve's avatar Thomas Lechauve

Fix bug (firefox): hashtag now correctly parsed

on firefox, window.location.hash decode uri component automatically
so current regular expression for instance url did not work anymore
parent 71cbdce1
...@@ -54,7 +54,7 @@ $.publish = function() { ...@@ -54,7 +54,7 @@ $.publish = function() {
}; };
// Event Handlers // Event Handlers
$.hashHandler = function(){ $.publish('urlChange', $.parseHash(window.location.hash.substr(1))); }; $.hashHandler = function(){ $.publish('urlChange', $.parseHash(window.location.href.split("#")[1])); };
$.redirectHandler = function(e, url){ window.location.hash = $.genHash(url); }; $.redirectHandler = function(e, url){ window.location.hash = $.genHash(url); };
// redirections manager // redirections manager
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment