From e31c60aab3cf3b1fd86fa1117aa9178b804ad283 Mon Sep 17 00:00:00 2001 From: Micah Thomas Date: Mon, 26 Feb 2024 14:45:15 -0700 Subject: [PATCH] fix: use base url for the localization route --- apps/landing/src/sections/LogoPanel.tsx | 4 ++-- apps/subscription/src/sections/LogoPanel.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/landing/src/sections/LogoPanel.tsx b/apps/landing/src/sections/LogoPanel.tsx index d749195..097dd2b 100644 --- a/apps/landing/src/sections/LogoPanel.tsx +++ b/apps/landing/src/sections/LogoPanel.tsx @@ -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) => { diff --git a/apps/subscription/src/sections/LogoPanel.tsx b/apps/subscription/src/sections/LogoPanel.tsx index d749195..a316ec1 100644 --- a/apps/subscription/src/sections/LogoPanel.tsx +++ b/apps/subscription/src/sections/LogoPanel.tsx @@ -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) => {