Skip to content

Commit bf9dbfe

Browse files
committed
fix: resolve 404 errors and ensure translation consistency
- Fix Header navigation links: /brand → /design/brand, /product → /design/product - Fix Hero component links: /brand/ → /design/brand/, /product/ → /design/product/ - Fix Footer links: /brand# → /design/brand#, /product# → /design/product# - Ensure all navigation links work correctly with basePath: '/design' - Verify translation consistency across submenu and footer - All Brand and Product links now resolve correctly (no 404 errors) - Maintain consistent URL structure throughout the application
1 parent 43eeff6 commit bf9dbfe

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/components/layout/Footer.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ const Footer = () => {
1818
{ name: t('footer.foundations.tools'), href: '#tools' },
1919
],
2020
'Brand': [
21-
{ name: t('footer.brand.principles'), href: '/brand#principles' },
22-
{ name: t('footer.brand.guidelines'), href: '/brand#guidelines' },
23-
{ name: t('footer.brand.resources'), href: '/brand#resources' },
21+
{ name: t('footer.brand.principles'), href: '/design/brand#principles' },
22+
{ name: t('footer.brand.guidelines'), href: '/design/brand#guidelines' },
23+
{ name: t('footer.brand.resources'), href: '/design/brand#resources' },
2424
],
2525
'Product': [
26-
{ name: t('footer.product.principles'), href: '/product#principles' },
27-
{ name: t('footer.product.guidelines'), href: '/product#guidelines' },
28-
{ name: t('footer.product.resources'), href: '/product#resources' },
26+
{ name: t('footer.product.principles'), href: '/design/product#principles' },
27+
{ name: t('footer.product.guidelines'), href: '/design/product#guidelines' },
28+
{ name: t('footer.product.resources'), href: '/design/product#resources' },
2929
],
3030
'Connect': [
3131
{ name: 'Buzzvil', href: 'https://www.buzzvil.com/en' },

src/components/layout/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const Header = () => {
1515

1616
const navItems = [
1717
{ name: t('nav.foundations'), href: '/', icon: BookOpen },
18-
{ name: t('nav.brand'), href: '/brand', icon: Award },
19-
{ name: t('nav.product'), href: '/product', icon: Code },
18+
{ name: t('nav.brand'), href: '/design/brand', icon: Award },
19+
{ name: t('nav.product'), href: '/design/product', icon: Code },
2020
];
2121

2222
return (

src/components/sections/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ const Hero = () => {
9696
{t('hero.explore')}
9797
</motion.a>
9898
<motion.a
99-
href="/brand/"
99+
href="/design/brand/"
100100
whileHover={{ scale: 1.02, y: -1 }}
101101
whileTap={{ scale: 0.98 }}
102102
className="px-6 py-3 border border-border/50 text-foreground rounded-lg font-medium hover:border-border hover:bg-muted/50 transition-all duration-150 focus-ring"
103103
>
104104
{t('hero.brand')}
105105
</motion.a>
106106
<motion.a
107-
href="/product/"
107+
href="/design/product/"
108108
whileHover={{ scale: 1.02, y: -1 }}
109109
whileTap={{ scale: 0.98 }}
110110
className="px-6 py-3 border border-border/50 text-foreground rounded-lg font-medium hover:border-border hover:bg-muted/50 transition-all duration-150 focus-ring"

0 commit comments

Comments
 (0)