asa
Archived May, 2026.
Unexpected language code
Moin
I think the invalid code comes from Discourse.
Maybe instead of hreflang="<%= locale %>" it should be hreflang="<%= locale.tr('_', '-') %>" to replace the underscore.
👀 1❤️ 1
asa
I have submitted a Pull Request to fix this in the Discourse repository:
This change ensures the hreflang attribute is SEO-compliant while keeping the internal locale parameters functional.
❤️ 1
nat
Thank you for your PR, I’ve added specs and merged it.
❤️ 2
