Skip to content

Commit 70c6073

Browse files
committed
feat(vae-collective): cohorte registration url no leads to the registration code input form with the code pre filled
1 parent 31cad39 commit 70c6073

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/reva-vae-collective/src/app/(main)/commanditaires/[commanditaireId]/cohortes/[cohorteVaeCollectiveId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default async function CohortePage({
190190
registrationCode={cohorte.codeInscription || ""}
191191
/>
192192
<RegistrationUrlDisplay
193-
registrationUrl={`${websiteBaseUrl}/inscription-candidat/vae-collective/${cohorte.codeInscription}`}
193+
registrationUrl={`${websiteBaseUrl}/inscription-candidat/vae-collective?codeInscription=${cohorte.codeInscription}`}
194194
/>
195195
</div>
196196
</div>

packages/reva-vae-collective/tests/commanditaires/commanditaire/cohortes/cohorte/cohorte.generateCodeInscriptionButton.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ test.describe("registration code and url display", () => {
338338
"CODE1234",
339339
);
340340
await expect(page.getByTestId("registration-url-display")).toContainText(
341-
"http://localhost:3002/inscription-candidat/vae-collective/CODE1234",
341+
"http://localhost:3002/inscription-candidat/vae-collective?codeInscription=CODE1234",
342342
);
343343
});
344344
});

packages/reva-vae-collective/tests/commanditaires/commanditaire/cohortes/cohorte/cohorte.registrationCodeAndUrlDisplay.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test.describe("registration code and url display", () => {
8080
"CODE1234",
8181
);
8282
await expect(page.getByTestId("registration-url-display")).toContainText(
83-
"http://localhost:3002/inscription-candidat/vae-collective/CODE1234",
83+
"http://localhost:3002/inscription-candidat/vae-collective?codeInscription=CODE1234",
8484
);
8585
});
8686
});

0 commit comments

Comments
 (0)