Skip to content

Commit

Permalink
Hotfix seo
Browse files Browse the repository at this point in the history
  • Loading branch information
oktapodia authored Oct 3, 2024
1 parent d88a71d commit 0701072
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/app/[lng]/(infos)/learn/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function generateMetadata({
title: `Jumper Learn | ${sliceStrToXChar(articleData.Title, 45)}`,
description: `${sliceStrToXChar(articleData.Subtitle, 60)}`,
siteName: siteName,
url: `${process.env.NEXT_PUBLIC_SITE_URL}/learn/${params.slug}/`,
url: `${process.env.NEXT_PUBLIC_SITE_URL}/learn/${params.slug}`,
images: [
{
url: `${article.url}${articleData.Image.data.attributes?.url}`,
Expand All @@ -44,7 +44,7 @@ export async function generateMetadata({
title: `Jumper Learn | ${sliceStrToXChar(articleData.Title, 45)}`,
description: articleData.Subtitle,
alternates: {
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/${params.slug}/`,
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/${params.slug}`,
},
twitter: openGraph,
openGraph,
Expand Down
2 changes: 1 addition & 1 deletion src/app/[lng]/(infos)/learn/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function generateMetadata(): Promise<Metadata> {
title: 'Jumper Learn',
description: 'Jumper Learn is the blog of Jumper Exchange.',
alternates: {
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/learn/`,
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/learn`,
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/[lng]/(infos)/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export async function generateMetadata(): Promise<Metadata> {
title: 'Jumper Profile',
description: 'Jumper Profile is the profile page of Jumper Exchange.',
alternates: {
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/profile/`,
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/profile`,
},
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/[lng]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export function generateMetadata({ params }: RootLayoutProps): Metadata {
title,
description,
alternates: {
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/${params.lng === 'en' ? '' : params.lng}`,
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}`,
},
openGraph: {
title: title,
description,
siteName,
url: `${process.env.NEXT_PUBLIC_SITE_URL}/${params.lng === 'en' ? '' : params.lng}`,
url: `${process.env.NEXT_PUBLIC_SITE_URL}`,
images: [
{
url: 'https://jumper.exchange/preview.png', // Default image
Expand Down
2 changes: 1 addition & 1 deletion src/app/[lng]/superfest/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export async function generateMetadata(): Promise<Metadata> {
title: 'Jumper | Superfest',
description: 'Dive into the Superchain DeFi Festival!',
alternates: {
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/superfest/`,
canonical: `${process.env.NEXT_PUBLIC_SITE_URL}/superfest`,
},
};
}
Expand Down

0 comments on commit 0701072

Please sign in to comment.