In short
Semrush flags "Hreflang conflicts within page source code" when a page's hreflang tags contradict each other or other signals. Typical cases: two URLs for the same language code, the page's own hreflang URL not matching its canonical, or hreflang tags from two sources (plugin and theme) at once. Search engines may ignore the whole set. Output hreflang from one source and make it consistent with canonicals.
Hreflang tells search engines which page to show to which language or region. Conflicting tags leave them guessing.
Common conflicts
| Conflict | Fix |
|---|---|
| Same language code points to two URLs | One URL per code |
| Self-referencing hreflang URL differs from the canonical | Make them the same URL |
| Hreflang in HTML and in the sitemap with different values | Use one method |
| Two plugins outputting hreflang | Turn one off |
| Hreflang points to a URL that canonicalizes elsewhere | Point to the canonical URL |
How to fix it
View source on a flagged page and search for
hreflang.Check each code appears once and each URL is canonical.
Fix the template or plugin that outputs the tags.
WordPress: use only your translation plugin's hreflang output. Shopify, Webflow and Wix: check for custom hreflang code added alongside the built-in tags. Custom builds: generate the full set from one locale map.
This guide isn't affiliated with or endorsed by Semrush.
Related issues
Sources and references
Semrush Knowledge Base, What Issues Can Site Audit Identify?
Google Search Central, Tell Google about localized versions of your page

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



