Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[navigation] When showing a dialog, do not append dialogHashKey if th…

…e URL already contains it - Fixes: #2656
  • Loading branch information...
commit 7966179faac31c5f76c045eba3c9978ee88ef7ef 1 parent 738b056
Gabriel "_|Nix|_" Schulhof gabrielschulhof authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/jquery.mobile.navigation.js
2  js/jquery.mobile.navigation.js
View
@@ -1042,7 +1042,7 @@ define( [
// be an empty string. Moving the undefined -> empty string back into
// urlHistory.addNew seemed imprudent given undefined better represents
// the url state
- url = ( active.url || "" ) + dialogHashKey;
+ url = ( active.url || "" ).replace(dialogHashKey, "") + dialogHashKey;
}
// Set the location hash.
Please sign in to comment.
Something went wrong with that request. Please try again.