MCPcopy Index your code
hub / github.com/angular/angular / normalizePath

Function normalizePath

adev/shared-docs/utils/navigation.utils.ts:122–127  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

120 });
121
122export const normalizePath = (path: string): string => {
123 if (path[0] === '/') {
124 return path.substring(1);
125 }
126 return path;
127};
128
129export const getBaseUrlAfterRedirects = (url: string, router: Router): string => {
130 const route = router.parseUrl(url);

Callers 3

getRelativeUrlFunction · 0.90
checkFilesInDirectoryFunction · 0.90
getBaseUrlAfterRedirectsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…