MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / decodePath

Function decodePath

lib/test/angular/1.7.0/angular.js:13815–13828  ·  view source on GitHub ↗
(path, html5Mode)

Source from the content-addressed store, hash-verified

13813}
13814
13815function decodePath(path, html5Mode) {
13816 var segments = path.split('/'),
13817 i = segments.length;
13818
13819 while (i--) {
13820 segments[i] = decodeURIComponent(segments[i]);
13821 if (html5Mode) {
13822 // encode forward slashes to prevent them from being mistaken for path separators
13823 segments[i] = segments[i].replace(/\//g, '%2F');
13824 }
13825 }
13826
13827 return segments.join('/');
13828}
13829
13830function parseAbsoluteUrl(absoluteUrl, locationObj) {
13831 var parsedUrl = urlResolve(absoluteUrl);

Callers 1

parseAppUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected