straube/multiple-domain

hreflang tag error

Closed this issue · 0 comments

consultant1027 said on WP.org Support Forum:

Not sure if this is specific to my site or a bug in a recent update but SemRush monitors my site for on-page errors and a new slug of errors appeared since the last check a month ago. hreflang tag errors. I had to grep all my plugins to find which one was insertin the tag and it’s this plugin.

It’s missing a slash in the url.

<link rel=”alternate” href=”https://www.mydomain.comabout-us” hreflang=”x-default”/>

Should be

<link rel=”alternate” href=”https://www.mydomain.com/about-us” hreflang=”x-default”/>