From 7966179faac31c5f76c045eba3c9978ee88ef7ef Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Tue, 17 Apr 2012 16:44:43 +0300 Subject: [PATCH] [navigation] When showing a dialog, do not append dialogHashKey if the URL already contains it - Fixes: #2656 --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index ebeebb80d28..e6a8b9ce9e7 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -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.