Skip to content

Commit 0f07f70

Browse files
author
ROUL
committed
1 parent c5c7538 commit 0f07f70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/urlUtils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ function urlResolve(url) {
8181
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
8282
hostname: urlParsingNode.hostname,
8383
port: urlParsingNode.port,
84-
pathname: urlParsingNode.pathname && urlParsingNode.pathname.charAt(0) === '/' ?
84+
pathname: (urlParsingNode.protocol.indexOf('file')===0 && urlParsingNode.pathname.indexOf('\:')===2)?
85+
urlParsingNode.pathname.substring(3) : urlParsingNode.pathname.charAt(0) === '/' ?
8586
urlParsingNode.pathname : '/' + urlParsingNode.pathname
8687
};
8788
}

0 commit comments

Comments
 (0)