title: Sightly @ extension='html' adding a space a the end of the URL
body: <p>We're having a weird problem in our AEM 6.3 application.
  For some reason, the link to the contact-us page gets rendered with a space at its end, making it useless.</p>
  
  <p>I'm trying to figure this out but I'm kinda new to sightly (I used to be working on CQ5).</p>
  
  <p>To visualize it better, the configured link in the page properties is: </p>
  
  <pre><code>/content/app-name/hk/hk/info/contact-us
  </code></pre>
  
  <p>And the code in the HTML/sightly page is: </p>
  
  <pre><code>&lt;a href="${inheritedPageProperties.linkToContactUsPage @ extension='html'} "&gt;
      Contact Us
  &lt;/a&gt; 
  </code></pre>
  
  <p>While what gets rendered in the actual page is:</p>
  
  <pre><code>&lt;a href="/hk/hk/info/contact-us%20.html"&gt;
      Contact Us
  &lt;/a&gt;
  </code></pre>
  
  <p>This happens only in the chinese pages of the site, I'm not sure if this is relevant or just a coincidence.</p>
  
  <p>At first I thought the problem could be the blank space at the end of the href attribute, but shouldn't it result in "/hk/hk/info/contact-us.html%20" then? Also why would this problem affect only the chinese language pages and not all the other languages?</p>