* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 11677 | * @returns {string} |
| 11678 | */ |
| 11679 | function encodePath(path) { |
| 11680 | var segments = path.split('/'), |
| 11681 | i = segments.length; |
| 11682 | |
| 11683 | while (i--) { |
| 11684 | segments[i] = encodeUriSegment(segments[i]); |
| 11685 | } |
| 11686 | |
| 11687 | return segments.join('/'); |
| 11688 | } |
| 11689 | |
| 11690 | function parseAbsoluteUrl(absoluteUrl, locationObj) { |
| 11691 | var parsedUrl = urlResolve(absoluteUrl); |
no test coverage detected