diff --git a/console-ui/src/config.js b/console-ui/src/config.js index ded70a1bb..705d54cd7 100644 --- a/console-ui/src/config.js +++ b/console-ui/src/config.js @@ -32,17 +32,17 @@ module.exports = { { key: 'docs', text: 'DOCS', - link: 'https://nacos.io/en-us/docs/v2/quickstart/quick-start.html', + link: 'https://nacos.io/en/docs/latest/what-is-nacos/', }, { key: 'blog', text: 'BLOG', - link: 'https://nacos.io/en-us/blog', + link: 'https://nacos.io/en/blog/', }, { key: 'community', text: 'COMMUNITY', - link: 'https://nacos.io/en-us/community', + link: 'https://nacos.io/en/news/', }, { key: 'enterprise', @@ -97,17 +97,17 @@ module.exports = { { key: 'docs', text: '文档', - link: 'https://nacos.io/zh-cn/docs/v2/what-is-nacos.html', + link: 'https://nacos.io/docs/latest/what-is-nacos/', }, { key: 'blog', text: '博客', - link: 'https://nacos.io/zh-cn/blog/index.html', + link: 'https://nacos.io/blog/', }, { key: 'community', text: '社区', - link: 'https://nacos.io/zh-cn/community/index.html', + link: 'https://nacos.io/news/', }, { key: 'enterprise', diff --git a/console-ui/src/layouts/Header.js b/console-ui/src/layouts/Header.js index ab79761ef..c3c644196 100644 --- a/console-ui/src/layouts/Header.js +++ b/console-ui/src/layouts/Header.js @@ -88,12 +88,13 @@ class Header extends React.Component { } = this.props; const { home, docs, blog, community, enterprise, languageSwitchButton } = locale; const { passwordResetUser = '', passwordResetUserVisible = false } = this.state; - const BASE_URL = `https://nacos.io/${language.toLocaleLowerCase()}/`; + const BASE_URL = + language.toLocaleLowerCase() === 'en-us' ? 'https://nacos.io/en/' : 'https://nacos.io/'; const NAV_MENU = [ { id: 1, title: home, link: BASE_URL }, - { id: 2, title: docs, link: `${BASE_URL}docs/v2/what-is-nacos.html` }, - { id: 3, title: blog, link: `${BASE_URL}blog/index.html` }, - { id: 4, title: community, link: `${BASE_URL}community/index.html` }, + { id: 2, title: docs, link: `${BASE_URL}docs/latest/what-is-nacos/` }, + { id: 3, title: blog, link: `${BASE_URL}blog/` }, + { id: 4, title: community, link: `${BASE_URL}news/` }, { id: 5, title: enterprise, diff --git a/console/src/main/resources/static/index.html b/console/src/main/resources/static/index.html index 550b647d2..e94dfd3f2 100644 --- a/console/src/main/resources/static/index.html +++ b/console/src/main/resources/static/index.html @@ -35,7 +35,7 @@ - +
@@ -56,6 +56,6 @@ - +