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

Function getBaseUrlAfterRedirects

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

Source from the content-addressed store, hash-verified

130};
131
132export const getBaseUrlAfterRedirects = (url: string, router: Router): string => {
133 const route = router.parseUrl(url);
134 route.fragment = null;
135 route.queryParams = {};
136 return normalizePath(route.toString());
137};
138
139export function handleHrefClickEventWithRouter(e: Event, router: Router, relativeUrl: string) {
140 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