Unexpected language code

I think the invalid code comes from Discourse.

Maybe instead of hreflang="<%= locale %>" it should be hreflang="<%= locale.tr('_', '-') %>" to replace the underscore.

2 Likes