Skip to content

Commit b5a7ed3

Browse files
committed
Set ignoreLocale for paths returned from API
When locale is set, the links endpoint already includes locale in link.path
1 parent e27dd96 commit b5a7ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/SiteNavbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const SiteNavbar = (props: SiteNavbarProps) => {
6262
<NavItem key={`nav-item-${link.id}`} className='mx-2'>
6363
{ link.path.startsWith('http')
6464
? <NavLink href={link.path} className={link.class} target={link.target} rel={link.rel}>{link.title}</NavLink>
65-
: <NavLink to={link.path} tag={RNavLink}>{link.title}</NavLink>
65+
: <NavLink to={link.path} tag={RNavLink} ignoreLocale>{link.title}</NavLink>
6666
}
6767
</NavItem>
6868
))

0 commit comments

Comments
 (0)