* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 10459 | * @returns {string} |
| 10460 | */ |
| 10461 | function encodePath(path) { |
| 10462 | var segments = path.split('/'), |
| 10463 | i = segments.length; |
| 10464 | |
| 10465 | while (i--) { |
| 10466 | segments[i] = encodeUriSegment(segments[i]); |
| 10467 | } |
| 10468 | |
| 10469 | return segments.join('/'); |
| 10470 | } |
| 10471 | |
| 10472 | function parseAbsoluteUrl(absoluteUrl, locationObj) { |
| 10473 | var parsedUrl = urlResolve(absoluteUrl); |
no test coverage detected