I have a multilingual site where I add a language prefix like /tr/ or /es/ to the URL when switching languages. I’m unsure how to set canonical links correctly. Should I set the English version as canonical for all languages, or should each language version point to itself? How do I handle this to avoid issues with duplicate content?
For a multilingual site, you should use hreflang tags and set a self-referencing canonical on each unique URL. For example, /es/news/ and /en/news/ are not duplicates; they are separate pages and should have their own canonicals, with hreflang linking them as language alternatives.