♻️(frontend) extract hardcoded domain to use dynamic window origin

Replace hardcoded visio.numerique.gouv.fr with automatic detection based on
window.location.origin for better environment flexibility.
This commit is contained in:
lebaudantoine
2025-06-02 22:47:56 +02:00
committed by aleb_the_flash
parent c82168b6c0
commit 98de4f9145
2 changed files with 2 additions and 3 deletions

View File

@@ -10,8 +10,7 @@ export const NotFoundScreen = () => {
<Screen layout="centered">
<CenteredContent title={t('notFound.heading')} withBackButton>
<Text centered>
{t('notFound.body')}{' '}
<Bold>https://visio.numerique.gouv.fr/xxx-yyyy-zzz.</Bold>
{t('notFound.body')} <Bold>{window.origin}/xxx-yyyy-zzz.</Bold>
</Text>
</CenteredContent>
</Screen>

View File

@@ -23,7 +23,7 @@ export const JoinMeetingDialog = () => {
name="roomId"
label={t('joinInputLabel')}
description={t('joinInputExample', {
example: 'https://visio.numerique.gouv.fr/azer-tyu-qsdf',
example: window.origin + '/azer-tyu-qsdf',
})}
validate={(value) => {
return !isRoomValid(value.trim()) ? (