We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5c7538 commit 0f07f70Copy full SHA for 0f07f70
src/ng/urlUtils.js
@@ -81,7 +81,8 @@ function urlResolve(url) {
81
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
82
hostname: urlParsingNode.hostname,
83
port: urlParsingNode.port,
84
- pathname: urlParsingNode.pathname && urlParsingNode.pathname.charAt(0) === '/' ?
+ pathname: (urlParsingNode.protocol.indexOf('file')===0 && urlParsingNode.pathname.indexOf('\:')===2)?
85
+ urlParsingNode.pathname.substring(3) : urlParsingNode.pathname.charAt(0) === '/' ?
86
urlParsingNode.pathname : '/' + urlParsingNode.pathname
87
};
88
}
0 commit comments