♻️(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"> <Screen layout="centered">
<CenteredContent title={t('notFound.heading')} withBackButton> <CenteredContent title={t('notFound.heading')} withBackButton>
<Text centered> <Text centered>
{t('notFound.body')}{' '} {t('notFound.body')} <Bold>{window.origin}/xxx-yyyy-zzz.</Bold>
<Bold>https://visio.numerique.gouv.fr/xxx-yyyy-zzz.</Bold>
</Text> </Text>
</CenteredContent> </CenteredContent>
</Screen> </Screen>

View File

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