diff --git a/web/app/install/installForm.tsx b/web/app/install/installForm.tsx index 77843d06bb..1cd5dce19a 100644 --- a/web/app/install/installForm.tsx +++ b/web/app/install/installForm.tsx @@ -14,6 +14,7 @@ import { zodSubmitValidator } from '@/app/components/base/form/utils/zod-submit- import Input from '@/app/components/base/input' import { validPassword } from '@/config' +import { LICENSE_LINK } from '@/constants/link' import useDocumentTitle from '@/hooks/use-document-title' import { fetchInitValidateStatus, fetchSetupStatus, login, setup } from '@/service/common' import { cn } from '@/utils/classnames' @@ -217,7 +218,7 @@ const InstallForm = () => { className="text-text-accent" target="_blank" rel="noopener noreferrer" - href="https://github.com/langgenius/dify?tab=License-1-ov-file#readme" + href={LICENSE_LINK} > {t('license.link', { ns: 'login' })} diff --git a/web/app/signin/invite-settings/page.tsx b/web/app/signin/invite-settings/page.tsx index 217d60aa68..c16a580b3a 100644 --- a/web/app/signin/invite-settings/page.tsx +++ b/web/app/signin/invite-settings/page.tsx @@ -11,6 +11,7 @@ import Input from '@/app/components/base/input' import Loading from '@/app/components/base/loading' import { SimpleSelect } from '@/app/components/base/select' import Toast from '@/app/components/base/toast' +import { LICENSE_LINK } from '@/constants/link' import { useGlobalPublicStore } from '@/context/global-public-context' import { setLocaleOnClient } from '@/i18n-config' import { languages, LanguagesSupported } from '@/i18n-config/language' @@ -159,7 +160,7 @@ export default function InviteSettingsPage() { className="system-xs-medium text-text-accent-secondary" target="_blank" rel="noopener noreferrer" - href="https://github.com/langgenius/dify?tab=License-1-ov-file#readme" + href={LICENSE_LINK} > {t('license.link', { ns: 'login' })} diff --git a/web/app/signin/one-more-step.tsx b/web/app/signin/one-more-step.tsx index 94272355e3..ff28b3caaf 100644 --- a/web/app/signin/one-more-step.tsx +++ b/web/app/signin/one-more-step.tsx @@ -8,6 +8,7 @@ import Button from '@/app/components/base/button' import { SimpleSelect } from '@/app/components/base/select' import Toast from '@/app/components/base/toast' import Tooltip from '@/app/components/base/tooltip' +import { LICENSE_LINK } from '@/constants/link' import { languages, LanguagesSupported } from '@/i18n-config/language' import { useOneMoreStep } from '@/service/use-common' import { timezones } from '@/utils/timezone' @@ -156,7 +157,7 @@ const OneMoreStep = () => { className="system-xs-medium text-text-accent-secondary" target="_blank" rel="noopener noreferrer" - href="https://github.com/langgenius/dify?tab=License-1-ov-file#readme" + href={LICENSE_LINK} > {t('license.link', { ns: 'login' })} diff --git a/web/constants/link.ts b/web/constants/link.ts new file mode 100644 index 0000000000..7797396fa6 --- /dev/null +++ b/web/constants/link.ts @@ -0,0 +1 @@ +export const LICENSE_LINK = 'https://github.com/langgenius/dify?tab=License-1-ov-file#readme'