fix(website): update links to use relative paths

This commit is contained in:
Simon
2026-01-17 02:13:19 +08:00
parent 9f239b2de3
commit ebbe92f7ca
2 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ export default function Header() {
aria-label="Mobile navigation"
>
<Link
href="/docs/introduction/overview"
href="~/docs/introduction/overview"
className="p-2 rounded-lg text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 shrink-0"
aria-label={t('header.nav_docs')}
>
@@ -89,7 +89,7 @@ export default function Header() {
{import.meta.env.VERSION}
</span>
<Link
href="/docs/introduction/overview"
href="~/docs/introduction/overview"
className="flex items-center gap-1.5 text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200"
>
<BookOpen className="w-4 h-4" />
@@ -137,7 +137,7 @@ export default function Header() {
role="navigation"
>
<Link
href="/docs/introduction/overview"
href="~/docs/introduction/overview"
className="flex items-center gap-2 px-3 py-2 rounded-lg text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200"
onClick={() => setMobileMenuOpen(false)}
>