This commit is contained in:
Jeremy Ashkenas
2012-02-02 14:41:36 -05:00
parent 799b9b3dd4
commit ad870b256c

View File

@@ -832,9 +832,9 @@
fragment = window.location.hash;
}
}
fragment = decodeURIComponent(fragment.replace(routeStripper, ''));
fragment = decodeURIComponent(fragment);
if (!fragment.indexOf(this.options.root)) fragment = fragment.substr(this.options.root.length);
return fragment;
return fragment.replace(routeStripper, '');
},
// Start the hash change handling, returning `true` if the current URL matches