Permalink
Browse files

[navigation] path.makeUrlAbsolute: If no absUrl is given, use documen…

…tBase
  • Loading branch information...
gabrielschulhof committed Jul 5, 2012
1 parent 9920ea5 commit 715f11e49a5b66c0787b8632f5eccde2d672731e
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/jquery.mobile.navigation.js
@@ -139,6 +139,10 @@ define( [
return relUrl;
}
+ if ( absUrl === undefined ) {
+ absUrl = documentBase;
+ }
+
var relObj = path.parseUrl( relUrl ),
absObj = path.parseUrl( absUrl ),
protocol = relObj.protocol || absObj.protocol,

0 comments on commit 715f11e

Please sign in to comment.