Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 715f11e

Browse files
author
Gabriel Schulhof
committed
[navigation] path.makeUrlAbsolute: If no absUrl is given, use documentBase
1 parent 9920ea5 commit 715f11e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/jquery.mobile.navigation.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ define( [
139139
return relUrl;
140140
}
141141

142+
if ( absUrl === undefined ) {
143+
absUrl = documentBase;
144+
}
145+
142146
var relObj = path.parseUrl( relUrl ),
143147
absObj = path.parseUrl( absUrl ),
144148
protocol = relObj.protocol || absObj.protocol,

0 commit comments

Comments
 (0)