Skip to content

Commit ea11dfb

Browse files
committed
Don't set ignoreNextHashChange to true if hash is same as location.hash
1 parent 53a8023 commit ea11dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@
876876
}
877877

878878
// Set the location hash.
879-
if( settings.changeHash !== false && url ) {
879+
if( settings.changeHash !== false && url && path.stripHash(location.hash) != url ) {
880880
//disable hash listening temporarily
881881
urlHistory.ignoreNextHashChange = true;
882882
//update hash and history

0 commit comments

Comments
 (0)