diff --git a/app/react/Settings/components/CollectionSettings.tsx b/app/react/Settings/components/CollectionSettings.tsx index 6f773c3f01..b5e0499e27 100644 --- a/app/react/Settings/components/CollectionSettings.tsx +++ b/app/react/Settings/components/CollectionSettings.tsx @@ -64,7 +64,7 @@ const CollectionSettings = ({ register('newNameGeneration'); register('ocrServiceEnabled'); register('home_page', { - validate: (val: string) => validateHomePageRoute(val) || 'Invalid route', + validate: (val: string) => validateHomePageRoute(val) || val === '', }); const save = async (newCollectionSettings: Settings) => { @@ -112,15 +112,17 @@ const CollectionSettings = ({ setValue('home_page', ''); }} > -
+
https://yourdomain
+
+ {errors.home_page &&
Invalid home page url
} +
- {errors.home_page &&

Invalid home page url value

}