Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strategy prefix creates routes with and witouth prefix #1465

Closed
arsapoz opened this issue Jul 5, 2022 · 1 comment
Closed

Strategy prefix creates routes with and witouth prefix #1465

arsapoz opened this issue Jul 5, 2022 · 1 comment

Comments

@arsapoz
Copy link

arsapoz commented Jul 5, 2022

Hello,
When I use the strategy 'prefix' and I want to build my website it creates routes with prefixes (de, en) and without which shouldn't be the case because that is bad for SEO. can you please help me with it?

this is my config:
i18n: {
strategy: 'prefix',
defaultLocale: 'de',
seo: true,
vueI18nLoader: true,
vueI18n: {
fallbackLocale: 'de'
},
locales: [
{
code: 'en',
name: 'English',
iso: 'en-US'
},
{
code: 'de',
name: 'Deutsch',
iso: 'de'
}
],
pages: {
contact: {
de: '/kontakt',
en: '/contact'
},
agb: {
de: '/agb',
en: '/terms'
},
// checkout: {
// de: '/agb',
// en: '/terms'
// },
// checkout: {
// de: '/kasse',
// en: '/cart'
// },
dsgvo: {
de: '/dsgvo',
en: '/gdpr'
},
faq: {
de: '/faq',
en: '/faq'
},
impressum: {
de: '/impressum',
en: '/imprint'
},
withdrawal: {
de: '/wiederrufsbelehrung',
en: '/widtdrawal'
}
}
},

image

@rchl
Copy link
Collaborator

rchl commented Aug 6, 2022

Duplicate of #1288.

@rchl rchl closed this as not planned Won't fix, can't repro, duplicate, stale Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants