Permalink
Browse files

[popup] Do not use the hash from the location at all, and always appe…

…nd a dialog hash key when not reusing a history entry -- Fixes 5118
  • Loading branch information...
1 parent a5d300e commit 729b73beb433c4231af79c1b44b61fdbd8ee51d5 @gabrielschulhof gabrielschulhof committed Oct 2, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 js/widgets/popup.js
View
@@ -736,13 +736,7 @@ define( [ "jquery",
return;
}
- // if the current url has no dialog hash key proceed as normal
- // otherwise, if the page is a dialog simply tack on the hash key
- if ( url.indexOf( hashkey ) === -1 && !currentIsDialog ){
- url = url + hashkey;
- } else {
- url = $.mobile.path.parseLocation().hash + hashkey;
- }
+ url = url + hashkey;
// Tack on an extra hashkey if this is the first page and we've just reconstructed the initial hash
if ( urlHistory.activeIndex === 0 && url === urlHistory.initialDst ) {

0 comments on commit 729b73b

Please sign in to comment.