♻️(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:
committed by
aleb_the_flash
parent
c82168b6c0
commit
98de4f9145
@@ -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>
|
||||||
|
|||||||
@@ -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()) ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user