* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 10578 | * @returns {string} |
| 10579 | */ |
| 10580 | function encodePath(path) { |
| 10581 | var segments = path.split('/'), |
| 10582 | i = segments.length; |
| 10583 | |
| 10584 | while (i--) { |
| 10585 | segments[i] = encodeUriSegment(segments[i]); |
| 10586 | } |
| 10587 | |
| 10588 | return segments.join('/'); |
| 10589 | } |
| 10590 | |
| 10591 | function parseAbsoluteUrl(absoluteUrl, locationObj) { |
| 10592 | var parsedUrl = urlResolve(absoluteUrl); |
no test coverage detected