{"id":8666848,"date":"2017-01-18T01:47:07","date_gmt":"2017-01-18T01:47:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wrong-canonical-url-with-wpml\/"},"modified":"2017-01-18T01:47:07","modified_gmt":"2017-01-18T01:47:07","slug":"wrong-canonical-url-with-wpml","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wrong-canonical-url-with-wpml\/","title":{"rendered":"wrong Canonical URL with WPML"},"content":{"rendered":"<p>Just discovered a little bug that outputs the wrong canonical URL on the secondary language of a site running WPML.<\/p>\n<p>For some reason the language parameter of the secondary language gets output twice:<\/p>\n<p><code>&lt;link rel=&quot;canonical&quot; href=&quot;https:\/\/explore-azores.eu\/de\/de\/&quot; \/&gt;<\/code><\/p>\n<p>Running latest version of everything, please ask more details if needed.<\/p>\n","protected":false},"template":"","class_list":["post-8666848","topic","type-topic","status-publish","hentry","topic-tag-canonical-url","topic-tag-secondary-language"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8666848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8666848\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8666848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}