MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / getPrefixedLandingPath

Function getPrefixedLandingPath

api/src/utils/redirection.ts:94–97  ·  view source on GitHub ↗
(origin: string, pathPrefix?: string)

Source from the content-addressed store, hash-verified

92 * @returns The prefixed landing path.
93 */
94export function getPrefixedLandingPath(origin: string, pathPrefix?: string) {
95 const redirectPathSegment = pathPrefix ? `/${pathPrefix}` : '';
96 return `${origin}${redirectPathSegment}`;
97}
98
99function getParamsFromUrl(
100 url: string | undefined | null,

Callers 2

handleRedirectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected