MCPcopy
hub / github.com/angular/angular / getServerBase

Method getServerBase

packages/common/upgrade/src/location_shim.ts:349–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347 }
348
349 private getServerBase() {
350 const {protocol, hostname, port} = this.platformLocation;
351 const baseHref = this.locationStrategy.getBaseHref();
352 let url = `${protocol}//${hostname}${port ? ':' + port : ''}${baseHref || '/'}`;
353 return url.endsWith('/') ? url : url + '/';
354 }
355
356 private parseAppUrl(url: string) {
357 if (DOUBLE_SLASH_REGEX.test(url)) {

Callers 5

browserUrlMethod · 0.95
parseAppUrlMethod · 0.95
$$parseMethod · 0.95
$$parseLinkUrlMethod · 0.95
composeUrlsMethod · 0.95

Calls 1

getBaseHrefMethod · 0.45

Tested by

no test coverage detected