MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / decodePath

Function decodePath

lib/test/angular/1.6.7/angular.js:13611–13624  ·  view source on GitHub ↗
(path, html5Mode)

Source from the content-addressed store, hash-verified

13609}
13610
13611function decodePath(path, html5Mode) {
13612 var segments = path.split('/'),
13613 i = segments.length;
13614
13615 while (i--) {
13616 segments[i] = decodeURIComponent(segments[i]);
13617 if (html5Mode) {
13618 // encode forward slashes to prevent them from being mistaken for path separators
13619 segments[i] = segments[i].replace(/\//g, '%2F');
13620 }
13621 }
13622
13623 return segments.join('/');
13624}
13625
13626function parseAbsoluteUrl(absoluteUrl, locationObj) {
13627 var parsedUrl = urlResolve(absoluteUrl);

Callers 1

parseAppUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected