* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 9155 | * @returns {string} |
| 9156 | */ |
| 9157 | function encodePath(path) { |
| 9158 | var segments = path.split('/'), |
| 9159 | i = segments.length; |
| 9160 | |
| 9161 | while (i--) { |
| 9162 | segments[i] = encodeUriSegment(segments[i]); |
| 9163 | } |
| 9164 | |
| 9165 | return segments.join('/'); |
| 9166 | } |
| 9167 | |
| 9168 | function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) { |
| 9169 | var parsedUrl = urlResolve(absoluteUrl, appBase); |
no test coverage detected