Skip to content
This repository
Browse code

[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 authored April 17, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  js/jquery.mobile.navigation.js
2  js/jquery.mobile.navigation.js
@@ -1042,7 +1042,7 @@ define( [
1042 1042
 			// be an empty string. Moving the undefined -> empty string back into
1043 1043
 			// urlHistory.addNew seemed imprudent given undefined better represents
1044 1044
 			// the url state
1045  
-			url = ( active.url || "" ) + dialogHashKey;
  1045
+			url = ( active.url || "" ).replace(dialogHashKey, "") + dialogHashKey;
1046 1046
 		}
1047 1047
 
1048 1048
 		// Set the location hash.

0 notes on commit 7966179

Please sign in to comment.
Something went wrong with that request. Please try again.