Permalink
Browse files

The router was patched to change the fragment in order to retain hash…

… parameters.
  • Loading branch information...
1 parent d9c19b3 commit b1e00651b511f1adf55bdc92f8e504740cfe6b20 @azicchetti committed Mar 2, 2013
Showing with 5 additions and 1 deletion.
  1. +4 −0 js/jquery.mobile.router.js
  2. +1 −1 js/jquery.mobile.router.min.js
@@ -57,6 +57,10 @@ $(document).on("mobileinit", function(){
previousUrl = nextUrl;
nextUrl = u;
+ if (u.hash.indexOf("?") != -1){
+ data.options.dataUrl = u.hash.replace(/^#/,"");
+ }
+
// conditions to possibly set allowSamePageTransitions: we have a "?" or we're transitioning from
// #foo?params to #foo
var noparamsRE = /^#|\?.*$/g;

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit b1e0065

Please sign in to comment.