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

Function getBaseUrlAfterRedirects

adev/shared-docs/utils/navigation.utils.ts:129–134  ·  view source on GitHub ↗
(url: string, router: Router)

Source from the content-addressed store, hash-verified

127};
128
129export const getBaseUrlAfterRedirects = (url: string, router: Router): string => {
130 const route = router.parseUrl(url);
131 route.fragment = null;
132 route.queryParams = {};
133 return normalizePath(route.toString());
134};
135
136export function handleHrefClickEventWithRouter(e: Event, router: Router, relativeUrl: string) {
137 const pointerEvent = e as PointerEvent;

Callers 2

listenToRouteChangeMethod · 0.90

Calls 3

normalizePathFunction · 0.70
toStringMethod · 0.65
parseUrlMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…