diff --git a/js/jQuery.mobile.js b/js/jQuery.mobile.js index 52f9fc70..fee560a4 100644 --- a/js/jQuery.mobile.js +++ b/js/jQuery.mobile.js @@ -78,9 +78,7 @@ var href = jQuery( this ).attr( "href" ); pageTransition = jQuery( this ).attr( "data-transition" ) || "slide"; nextPageRole = jQuery( this ).attr( "data-rel" ); - - //reset base to pathname for new request - resetBaseURL(); + //find new base for url building var newBaseURL = getBaseURL(); @@ -160,6 +158,9 @@ fileUrl = url; pageTransition = undefined; + //reset base to pathname for new request + resetBaseURL(); + // if the new href is the same as the previous one if ( back ) { transition = urlStack.pop().transition; @@ -251,7 +252,7 @@ ''+ ''); - // + //set base href to pathname resetBaseURL(); //potential (probably incomplete) fallback to workaround lack of animation callbacks.