Skip to content

Commit

Permalink
Merge pull request #1359 from govuk-one-login/BAU/landing-referer
Browse files Browse the repository at this point in the history
BAU: log landing referer
  • Loading branch information
dbes-gds authored Feb 13, 2024
2 parents 456fc10 + 7b01b66 commit 69488bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/landing/landing-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { USER_JOURNEY_EVENTS } from "../common/state-machine/state-machine";
import { landingService } from "./landing-service";
import { LandingServiceInterface } from "./types";
import { appendQueryParamIfHasValue } from "../../utils/url";
import { logger } from "../../utils/logger";

function createConsentCookie(
res: Response,
Expand All @@ -38,6 +39,7 @@ export function landingGet(
return async function (req: Request, res: Response) {
const { sessionId, clientSessionId, persistentSessionId } = res.locals;
const loginPrompt = sanitize(req.query.prompt as string);
logger.info(`Landing referer: ${sanitize(req.headers.referer)}`);

const startAuthResponse = await service.start(
sessionId,
Expand Down

0 comments on commit 69488bd

Please sign in to comment.