Skip to content

Commit f84ceb1

Browse files
author
scottjehl
committed
Merge remote branch 'origin/master'
2 parents 22b0cae + ca17344 commit f84ceb1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,15 @@
561561
// page is loaded off the network.
562562
dupCachedPage = null,
563563

564+
// determine the current base url
565+
findBaseWithDefault = function(){
566+
var closestBase = ( $.mobile.activePage && getClosestBaseUrl( $.mobile.activePage ) );
567+
return closestBase || documentBase.hrefNoHash;
568+
},
569+
564570
// The absolute version of the URL passed into the function. This
565571
// version of the URL may contain dialog/subpage params in it.
566-
absUrl = path.makeUrlAbsolute( url, ( $.mobile.activePage && getClosestBaseUrl( $.mobile.activePage ) ) || documentBase.hrefNoHash);
572+
absUrl = path.makeUrlAbsolute( url, findBaseWithDefault() );
567573

568574

569575
// If the caller provided data, and we're using "get" request,

0 commit comments

Comments
 (0)