* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 9234 | * @returns {string} |
| 9235 | */ |
| 9236 | function encodePath(path) { |
| 9237 | var segments = path.split('/'), |
| 9238 | i = segments.length; |
| 9239 | |
| 9240 | while (i--) { |
| 9241 | segments[i] = encodeUriSegment(segments[i]); |
| 9242 | } |
| 9243 | |
| 9244 | return segments.join('/'); |
| 9245 | } |
| 9246 | |
| 9247 | function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) { |
| 9248 | var parsedUrl = urlResolve(absoluteUrl, appBase); |
no test coverage detected