Skip to content

Commit 729b73b

Browse files
author
Gabriel Schulhof
committed
[popup] Do not use the hash from the location at all, and always append a dialog hash key when not reusing a history entry -- Fixes 5118
1 parent a5d300e commit 729b73b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

js/widgets/popup.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -736,13 +736,7 @@ define( [ "jquery",
736736
return;
737737
}
738738

739-
// if the current url has no dialog hash key proceed as normal
740-
// otherwise, if the page is a dialog simply tack on the hash key
741-
if ( url.indexOf( hashkey ) === -1 && !currentIsDialog ){
742-
url = url + hashkey;
743-
} else {
744-
url = $.mobile.path.parseLocation().hash + hashkey;
745-
}
739+
url = url + hashkey;
746740

747741
// Tack on an extra hashkey if this is the first page and we've just reconstructed the initial hash
748742
if ( urlHistory.activeIndex === 0 && url === urlHistory.initialDst ) {

0 commit comments

Comments
 (0)