Skip to content

Commit

Permalink
Merge branch 'main' into fix-vuln-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pgurusinga authored Nov 21, 2024
2 parents 214de62 + 89bb0b3 commit 4c1d42f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/routes/shared/result.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { interpolateSerializableObject } from "~/util/fillTemplate";
export const loader = async ({ request, context }: LoaderFunctionArgs) => {
const { pathname } = new URL(request.url);
const { flowId, stepId } = parsePathname(pathname);
const cmsStepId = stepId.replace("ergebnis/", "");
const cookieHeader = request.headers.get("Cookie");

const { userData, debugId } = await getSessionData(flowId, cookieHeader);
Expand All @@ -34,10 +35,8 @@ export const loader = async ({ request, context }: LoaderFunctionArgs) => {
return redirect(flowController.getInitial());

const [resultPageContent, parentMeta, defaultStrings] = await Promise.all([
fetchFlowPage("result-pages", flowId, stepId.replace("ergebnis/", "")),
fetchMeta({
filterValue: pathname.substring(0, pathname.lastIndexOf("/")),
}),
fetchFlowPage("result-pages", flowId, cmsStepId),
fetchMeta({ filterValue: flowId }),
fetchTranslations("defaultTranslations"),
]);

Expand Down

0 comments on commit 4c1d42f

Please sign in to comment.