Google is not indexing my homepage. It has two language versions and I am using Next Js with the app router setup. I followed the official guide of next is (can be found here).
Next is redirects the user from https://www.aquicreative.com to https://www.aquicreative.com/en or /es if the Spanish locale is set.
So the guide says to add a canonical for https://www.aquicreative.com and depending on the locale it will choose the correct one. and then have the alternate hreflang links for each locale. With this setup I get an error in search console: “Alternative page with proper canonical tag” for https://www.aquicreative.com/en so the main homepage in my main language cannot be indexed.
So I tried changing the canonical to https://www.aquicreative.com/en and /es using the dynamic locale from params. I expected this to recognise the current locale as the correct version of the site for that locale.
But I get a different error:
“Duplicate, Google chose different canonical than user”
Oliver Berman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.