Skip to content

Commit 7dea31c

Browse files
committed
Point submit URLs *back* to the MFE for dev and the new submission page
1 parent 031e03f commit 7dea31c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/challenge-detail/Header/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export default function ChallengeHeader(props) {
412412
isLegacyMM
413413
}
414414
theme={{ button: style.challengeAction }}
415-
to={`${config.URL.BASE}/challenges/${challengeId}/submit`}
415+
to={`${challengesUrl}/${challengeId}/submit`}
416416
>
417417
Submit
418418
</PrimaryButton>
@@ -422,7 +422,7 @@ export default function ChallengeHeader(props) {
422422
hasSubmissions && (
423423
<PrimaryButton
424424
theme={{ button: style.challengeAction }}
425-
to={`${config.URL.BASE}/challenges/${challengeId}/my-submissions`}
425+
to={`${challengesUrl}/${challengeId}/my-submissions`}
426426
>
427427
View Submissions
428428
</PrimaryButton>

src/components/challenge-detail/Submissions/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ class SubmissionsComponent extends React.Component {
734734
!hasRegistered || unregistering || submissionEnded || isLegacyMM
735735
}
736736
theme={{ button: style.challengeAction }}
737-
to={`${config.URL.BASE}/${challengeId}/submit`}
737+
to={`${challengesUrl}/${challengeId}/submit`}
738738
>
739739
Add Submission
740740
</PrimaryButton>

0 commit comments

Comments
 (0)