Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.

Commit 53e93ef

Browse files
committed
For navigation to page hashes of the form #<hash>?<param=value>&.... use only <hash> part when looking for divs
1 parent 3062199 commit 53e93ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.mobile.navigation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267

268268
//if url is a string
269269
if( url ){
270-
to = $( "[data-url='" + url + "']" );
270+
to = $( "[data-url='" + url.split('?')[0] + "']" );
271271
fileUrl = path.getFilePath(url);
272272
}
273273
else{ //find base url of element, if avail
@@ -466,4 +466,4 @@
466466
}
467467
}
468468
});
469-
})( jQuery );
469+
})( jQuery );

0 commit comments

Comments
 (0)