Following the Translating content documentation we have setup our site to have Spanish
, English
, and Japanese
. When we are adding, editing, deleting, and publishing pages in different languages we have no issues. However, when we view the canonical url, we find that the language_content_entity=en
is added for English
pages, for example. We are already adding the hreflang
to each page so don't need this extra parameter in the canonical
.
For all English pages:
<link rel="canonical" href="https://www.somedomain.net/some/path?language_content_entity=en">
For all Spanish pages:
<link rel="canonical" href="https://www.somedomain.net/some/path?language_content_entity=es">
How can we remove the language_content_entity=en
from the canonical
url?