diff --git a/astro.config.mjs b/astro.config.mjs index 54a4fd4..b98f686 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,7 +5,7 @@ import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ output: 'static', site: process.env.PUBLIC_SITE_URL ?? 'https://dev.blackbrowedlabs.com', - trailingSlash: 'never', + trailingSlash: 'always', i18n: { defaultLocale: 'de', locales: ['de', 'en'], diff --git a/src/components/SiteFooter.astro b/src/components/SiteFooter.astro index 9e5b6ab..b4b26cf 100644 --- a/src/components/SiteFooter.astro +++ b/src/components/SiteFooter.astro @@ -14,11 +14,11 @@ const path = Astro.url.pathname; const locale = getLocaleFromPath(path); const t = getUiStrings(locale).footer; -const productsHref = locale === 'de' ? '/produkte' : '/en/products'; -const aboutHref = locale === 'de' ? '/ueber' : '/en/about'; -const contactHref = locale === 'de' ? '/kontakt' : '/en/contact'; -const legalHref = locale === 'de' ? '/impressum' : '/en/legal'; -const privacyHref = locale === 'de' ? '/datenschutz' : '/en/privacy'; +const productsHref = locale === 'de' ? '/produkte/' : '/en/products/'; +const aboutHref = locale === 'de' ? '/ueber/' : '/en/about/'; +const contactHref = locale === 'de' ? '/kontakt/' : '/en/contact/'; +const legalHref = locale === 'de' ? '/impressum/' : '/en/legal/'; +const privacyHref = locale === 'de' ? '/datenschutz/' : '/en/privacy/'; ---