fix page highlight

This commit is contained in:
smanylov
2025-12-17 09:18:18 +07:00
parent 6e4dceda0c
commit c42d5eae27
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -6,7 +6,9 @@ import { usePathname } from 'next/navigation';
import { useTranslations } from 'next-intl'; import { useTranslations } from 'next-intl';
export default function DropDownList() { export default function DropDownList() {
const pathname = usePathname(); const pathname = usePathname().replace('/en/', '/').replace('/ru/', '/');
console.log('pathname');
console.log(pathname);
const [dropDownExpanded, setDropDownExpanded] = useState(false); const [dropDownExpanded, setDropDownExpanded] = useState(false);
const t = useTranslations('Global'); const t = useTranslations('Global');
+1 -1
View File
@@ -10,7 +10,7 @@ import { logout } from '@/app/actions/auth';
import { useTranslations } from 'next-intl'; import { useTranslations } from 'next-intl';
export default function NavLinks() { export default function NavLinks() {
const pathname = usePathname(); const pathname = usePathname().replace('/en/', '/').replace('/ru/', '/');
const t = useTranslations('Global'); const t = useTranslations('Global');
const links = [ const links = [