diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index 077fc2c..03b0352 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -51,7 +51,7 @@ export default function Header({ locale = "sr" }: HeaderProps) { } document.cookie = `NEXT_LOCALE=${newLocale}; path=/; max-age=31536000`; const pathWithoutLocale = pathname.replace(/^\/(sr|en|de|fr)/, "") || "/"; - const newPath = newLocale === "sr" ? pathWithoutLocale : `/${newLocale}${pathWithoutLocale}`; + const newPath = `/${newLocale}${pathWithoutLocale}`; router.push(newPath); setLangDropdownOpen(false); };