* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 10332 | * @returns {string} |
| 10333 | */ |
| 10334 | function encodePath(path) { |
| 10335 | var segments = path.split('/'), |
| 10336 | i = segments.length; |
| 10337 | |
| 10338 | while (i--) { |
| 10339 | segments[i] = encodeUriSegment(segments[i]); |
| 10340 | } |
| 10341 | |
| 10342 | return segments.join('/'); |
| 10343 | } |
| 10344 | |
| 10345 | function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) { |
| 10346 | var parsedUrl = urlResolve(absoluteUrl, appBase); |
no test coverage detected