Skip to content

Commit

Permalink
fix: Added dynamic lang code to navigation links (#1229)
Browse files Browse the repository at this point in the history
* fix: Add langCode to href property

* chore: add changeset

* chore: remove changeset
  • Loading branch information
arielconti10 authored Feb 21, 2023
1 parent 182eb3b commit 9046c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/src/components/navigation/navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ const langCode = getLanguageFromURL(pathname);
const navbarLinks: Array<{ href: string; label: string }> = [
{
href: "/en/introduction",
href: `/${langCode}/introduction`,
label: "Docs",
},
{
href: "/en/faq",
href: `/${langCode}/faq`,
label: "FAQ",
},
];
Expand Down

1 comment on commit 9046c1b

@vercel
Copy link

@vercel vercel bot commented on 9046c1b Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.