fix: Fix typo in link target (#4416)

Co-authored-by: Zeke Zhang <958414905@qq.com>
This commit is contained in:
CzBiX 2024-05-20 13:57:21 +08:00 committed by GitHub
parent f236e6d29d
commit 570a265e57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View File

@ -42,7 +42,7 @@ export const PoweredBy = () => {
dangerouslySetInnerHTML={{
__html: parseHTML(
customBrandPlugin?.options?.options?.brand ||
`Powered by <a href="${urls[i18n.language] || urls['en-US']}" target="__blank">NocoBase</a>`,
`Powered by <a href="${urls[i18n.language] || urls['en-US']}" target="_blank">NocoBase</a>`,
{ appVersion },
),
}}

View File

@ -48,7 +48,11 @@ const SettingsMenu: React.FC<{
{
key: 'homePage',
label: (
<a href={isSimplifiedChinese ? 'https://cn.nocobase.com/' : 'https://www.nocobase.com'} target="__blank">
<a
href={isSimplifiedChinese ? 'https://cn.nocobase.com/' : 'https://www.nocobase.com'}
target="_blank"
rel="noreferrer"
>
{t('Home page')}
</a>
),
@ -58,7 +62,8 @@ const SettingsMenu: React.FC<{
label: (
<a
href={isSimplifiedChinese ? 'https://docs-cn.nocobase.com/handbook' : 'https://docs.nocobase.com/handbook'}
target="__blank"
target="_blank"
rel="noreferrer"
>
{t('Handbook')}
</a>
@ -73,7 +78,8 @@ const SettingsMenu: React.FC<{
? 'https://cn.nocobase.com/agreement-cn.html'
: 'https://www.nocobase.com/agreement.html'
}
target="__blank"
target="_blank"
rel="noreferrer"
>
{t('License')}
</a>