Skip to content

Commit 5b7ab95

Browse files
committed
Fixed already owned screen's broken product link
1 parent 45712b4 commit 5b7ab95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/web/components/public/payments/checkout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ export default function Checkout({
225225
);
226226
}
227227
if (product.type === Constants.MembershipEntityType.COURSE) {
228-
router.replace(`/course/${product.id}?success=true`);
228+
router.replace(
229+
`/course/${product.slug}/${product.id}?success=true`,
230+
);
229231
}
230232
}
231233
} catch (err) {
@@ -492,7 +494,7 @@ export default function Checkout({
492494
.COURSE
493495
) {
494496
router.replace(
495-
`/course/${product.id}`,
497+
`/course/${product.slug}/${product.id}`,
496498
);
497499
}
498500
}}

0 commit comments

Comments
 (0)