MCPcopy Create free account
hub / github.com/angular/angular / normalizePath

Function normalizePath

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

Source from the content-addressed store, hash-verified

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

Callers 15

getRelativeUrlFunction · 0.90
checkFilesInDirectoryFunction · 0.90
getBaseUrlAfterRedirectsFunction · 0.70
toUriFunction · 0.50
openFileMethod · 0.50
closeFileMethod · 0.50
editFileMethod · 0.50
getFileContentMethod · 0.50
getCursorContextMethod · 0.50
expectDiagnosticsMethod · 0.50
normalizeUriFunction · 0.50
getLoadedProjectMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected