Skip to content

Commit

Permalink
fix: use base url for the localization route
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-micah committed Feb 26, 2024
1 parent e25483d commit e31c60a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/landing/src/sections/LogoPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ const LangLink = styled.a<{ isActive: boolean }>`
`;

const links = [
{ href: `/`, locale: locales.en, content: 'EN' },
{ href: `/${locales.ua}`, locale: locales.ua, content: 'UA' },
{ href: `${import.meta.env.BASE_URL}/`, locale: locales.en, content: 'EN' },
{ href: `${import.meta.env.BASE_URL}/${locales.ua}`, locale: locales.ua, content: 'UA' },
];

export const LogoPanel = ({ isFixed = false }: Props) => {
Expand Down
4 changes: 2 additions & 2 deletions apps/subscription/src/sections/LogoPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ const LangLink = styled.a<{ isActive: boolean }>`
`;

const links = [
{ href: `/`, locale: locales.en, content: 'EN' },
{ href: `/${locales.ua}`, locale: locales.ua, content: 'UA' },
{ href: `${import.meta.env.BASE_URL}`, locale: locales.en, content: 'EN' },
{ href: `${import.meta.env.BASE_URL}${locales.ua}`, locale: locales.ua, content: 'UA' },
];

export const LogoPanel = ({ isFixed = false }: Props) => {
Expand Down

0 comments on commit e31c60a

Please sign in to comment.