Skip to content

Commit

Permalink
Fix language switcher homepage path.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyjan committed Aug 29, 2024
1 parent 164c2bd commit 938269b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/[locale]/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ export default async function LandingPage({ params }: { params: { slug: string[]
<div>
<DebugMode slug={slug} />
<LanguageDataSetter
data={{ ...(pageData?.slugEn && { en: pageData.slugEn }), ...(pageData?.slugDe && { de: pageData.slugDe }) }}
data={{
...(pageData?.slugEn && pageData.slugEn !== 'home' && { en: pageData.slugEn }),
...(pageData?.slugDe && pageData.slugDe !== 'home' && { de: pageData.slugDe }),
}}
/>
{topComponents ? <ComponentRenderer data={topComponents} /> : null}
</div>
Expand Down

0 comments on commit 938269b

Please sign in to comment.