We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0e1f5 commit 44eaf77Copy full SHA for 44eaf77
js/jquery.mobile.navigation.js
@@ -917,7 +917,11 @@
917
// for the dialog content to be used in the hash. Instead, we want
918
// to append the dialogHashKey to the url of the current page.
919
if ( isDialog && active ) {
920
- url = active.url + dialogHashKey;
+ // on the initial page load active.url is undefined and in that case should
921
+ // be an empty string. Moving the undefined -> empty string back into
922
+ // urlHistory.addNew seemed imprudent given undefined better represents
923
+ // the url state
924
+ url = ( active.url || "" ) + dialogHashKey;
925
}
926
927
// Set the location hash.
0 commit comments