* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 9263 | * @returns {string} |
| 9264 | */ |
| 9265 | function encodePath(path) { |
| 9266 | var segments = path.split('/'), |
| 9267 | i = segments.length; |
| 9268 | |
| 9269 | while (i--) { |
| 9270 | segments[i] = encodeUriSegment(segments[i]); |
| 9271 | } |
| 9272 | |
| 9273 | return segments.join('/'); |
| 9274 | } |
| 9275 | |
| 9276 | function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) { |
| 9277 | var parsedUrl = urlResolve(absoluteUrl, appBase); |
no test coverage detected