title: WPML: hreflang is not implemented correctly
body: <p>I am using WPML for my multi-lingual wordpress site. I am having an issue getting the hreflang attribute to be implemented properly. </p>
  
  <p>According to this article:
  <a href="https://support.google.com/webmasters/answer/189077?hl=en" rel="nofollow">https://support.google.com/webmasters/answer/189077?hl=en</a>
  The hreflang tag must include not only the url of the translated page, but also the url of the current page. For example, when I am on <a href="https://example.com" rel="nofollow">https://example.com</a> the href tags should be as follows:</p>
  
  <pre><code>&lt;link rel="alternate" hreflang="en" href="https://example.com" /&gt;
  &lt;link rel="alternate" hreflang="de" href="https://example.com/de" /&gt;
  </code></pre>
  
  <p>This seems to be the correct implementation, however when using WPML v 2.9 only the translated hreflang tag is displayed. For instance when I am on <a href="https://example.com" rel="nofollow">https://example.com</a> it only shows the following:</p>
  
  <pre><code>&lt;link rel="alternate" hreflang="de" href="https://example.com/de" /&gt;
  </code></pre>
  
  <p>I have ticked both options in WPML > Languages > SEO Options:</p>
  
  <pre><code>x Display alternative languages in the HEAD section.
  x Add links to the original content with rel="canonical" attributes. 
  </code></pre>
  
  <p>Perhaps I have misunderstood and having a canonical tag like this: </p>
  
  <pre><code>&lt;link rel="canonical" href="https://example.com/" /&gt;
  </code></pre>
  
  <p>will suffice as the current page's hreflang tag. Thanks for any input.</p>