* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 9123 | * @returns {string} |
| 9124 | */ |
| 9125 | function encodePath(path) { |
| 9126 | var segments = path.split('/'), |
| 9127 | i = segments.length; |
| 9128 | |
| 9129 | while (i--) { |
| 9130 | segments[i] = encodeUriSegment(segments[i]); |
| 9131 | } |
| 9132 | |
| 9133 | return segments.join('/'); |
| 9134 | } |
| 9135 | |
| 9136 | function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) { |
| 9137 | var parsedUrl = urlResolve(absoluteUrl, appBase); |
no test coverage detected