MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / getFullPath

Function getFullPath

apps/site/app/sitemap.ts:21–22  ·  view source on GitHub ↗
(r: string, l: string)

Source from the content-addressed store, hash-verified

19);
20
21const getFullPath = (r: string, l: string) =>
22 /^https?:\/\//.test(r) ? r : `${baseUrlAndPath}/${l}/${r}`;
23
24const getAlternatePaths = (r: string, locales: Array<string>) =>
25 Object.fromEntries(locales.map(l => [l, getFullPath(r, l)]));

Callers 2

getAlternatePathsFunction · 0.85
getSitemapEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected