diff --git a/frontend/src/routes/(app)/(third-party)/requirement-assessments/[id=uuid]/edit/+page.server.ts b/frontend/src/routes/(app)/(third-party)/requirement-assessments/[id=uuid]/edit/+page.server.ts index ca453ef5b5..a6f9d3e3f4 100644 --- a/frontend/src/routes/(app)/(third-party)/requirement-assessments/[id=uuid]/edit/+page.server.ts +++ b/frontend/src/routes/(app)/(third-party)/requirement-assessments/[id=uuid]/edit/+page.server.ts @@ -16,7 +16,8 @@ import type { PageServerLoad } from './$types'; import { z } from 'zod'; export const load = (async ({ fetch, params }) => { - const endpoint = `${BASE_API_URL}/requirement-assessments/${params.id}/`; + const URLModel = 'requirement-assessments'; + const endpoint = `${BASE_API_URL}/${URLModel}/${params.id}/`; const res = await fetch(endpoint); const requirementAssessment = await res.json();