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

Function parseAppUrl

lib/test/angular/1.4.3/angular.js:11229–11244  ·  view source on GitHub ↗
(relativeUrl, locationObj)

Source from the content-addressed store, hash-verified

11227
11228
11229function parseAppUrl(relativeUrl, locationObj) {
11230 var prefixed = (relativeUrl.charAt(0) !== '/');
11231 if (prefixed) {
11232 relativeUrl = '/' + relativeUrl;
11233 }
11234 var match = urlResolve(relativeUrl);
11235 locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ?
11236 match.pathname.substring(1) : match.pathname);
11237 locationObj.$$search = parseKeyValue(match.search);
11238 locationObj.$$hash = decodeURIComponent(match.hash);
11239
11240 // make sure path starts with '/';
11241 if (locationObj.$$path && locationObj.$$path.charAt(0) != '/') {
11242 locationObj.$$path = '/' + locationObj.$$path;
11243 }
11244}
11245
11246
11247/**

Callers 2

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 2

urlResolveFunction · 0.70
parseKeyValueFunction · 0.70

Tested by

no test coverage detected