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

Function getRedirectParams

api/src/utils/redirection.ts:133–139  ·  view source on GitHub ↗
(
  req: { headers: { referer?: string } },
  _normalizeParams = normalizeParams
)

Source from the content-addressed store, hash-verified

131 * @returns The redirect parameters.
132 */
133export function getRedirectParams(
134 req: { headers: { referer?: string } },
135 _normalizeParams = normalizeParams
136): RedirectParams {
137 const url = req.headers['referer'];
138 return getParamsFromUrl(url, _normalizeParams);
139}
140
141/**
142 * Get the redirect parameters after sign in flow.

Callers 10

errorHandlerFunction · 0.85
emailSubscribtionRoutesFunction · 0.85
unsubscribeDeprecatedFunction · 0.85
errorHandlerFunction · 0.85
settingRedirectRoutesFunction · 0.85
fourOhFourFunction · 0.85
errorHandlingFunction · 0.85
pluginFunction · 0.85
handleRedirectsFunction · 0.85

Calls 1

getParamsFromUrlFunction · 0.85

Tested by

no test coverage detected