Rly need help! Weird canonical metadata/SEO issue!
Unanswered
Ruwbix posted this in #help-forum
RuwbixOP
Hi/ I've been trying to fix this for months, and still haven't managed to get it resolved... so I attempted a multilingual website. The home page is crawled correctly, but my destination pages are having like weird issues with getting crawled.
so my website does this: you go to the page e.g. https://website.com/destination/property-1, and then it'll redirect ya to https://website.com/en/destination/property-1. Now this works fine on the home page but somehow doesn't on my destination pages. I've provided some screenshots of the links.
so my website does this: you go to the page e.g. https://website.com/destination/property-1, and then it'll redirect ya to https://website.com/en/destination/property-1. Now this works fine on the home page but somehow doesn't on my destination pages. I've provided some screenshots of the links.
/* HOME PAGE */
/* app/[lang]/layout.tsx */
export const metadata: Metadata = {
title: {
default: siteConfig.name,
template: `%s - ${siteConfig.name}`,
},
metadataBase: new URL(siteConfig.url),
description: siteConfig.description,
alternates: {
canonical: '/',
languages: {
nl: '/nl',
fr: '/fr',
en: '/en',
},
},
/* .... */
}/* A DESTINATION PAGE */
/* app/[lang]/destination/property-1/page.tsx*/
export const metadata: Metadata = {
title: 'Example',
alternates: {
canonical: '/destination/property-1',
languages: {
nl: '/nl/destination/property-1',
en: '/en/destination/property-1',
fr: '/fr/destination/property-1',
},
},
};3 Replies
RuwbixOP
that's what google 'tells' me what's wrong but like with no extra info...
It says this for the URLS
https://website.com/destination/property-1
&
https://website.com/nl/destination/property-1
It says this for the URLS
https://website.com/destination/property-1
&
https://website.com/nl/destination/property-1
Asian black bear
That error means that the bot was redirected to a URL that doesn't work. If you navigate directly to
https://website.com/destination/property-1 (without using client side routing) do you get the page?In the networking tab, maybe be sure that you go there through a genuine redirect instead of landing on the next site and CSR is cleaning up somehow