Skip to content

Commit ca0c6d2

Browse files
TheMeinerLPclaude
andcommitted
fix(nav): resolve /ndefined phantom route bug
Remove useCookieLocale() from NavigationBar and use localePath() without an explicit locale argument, preventing undefined locale values from generating /ndefined URLs in Google Search Console. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3bc7cc2 commit ca0c6d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/features/blog/base/navigation/NavigationBar.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ import { ref } from '#imports';
33
import SimpleNavButton from "~/components/base/buttons/SimpleNavButton.vue";
44
import NavigationLanguageSelector from "./NavigationLanguageSelector.vue";
55
const { t } = useI18n();
6-
const locale = useCookieLocale();
76
const localePath = useLocalePath();
87
9-
108
const navItems = [
11-
{ textKey: 'navigation.overview', path: localePath('index', locale?.value as 'de' | 'en' | undefined) },
9+
{ textKey: 'navigation.overview', path: localePath('index') },
1210
];
1311
1412
const mobileMenuOpen = ref(false);

0 commit comments

Comments
 (0)