title: How to get the browser page URL without the domain name in the component's jsp/html aem6.3?
body: <p>Let's say my page url is <code>www.test.com/myproject/en/test.html</code>. Now I need to get '<code>/myproject/en/test.html</code>' in my component's jsp/html file. We are using sightly.</p>
  
  <p>I am trying to use the below code to achieve it-</p>
  
  <pre><code>&lt;script&gt;
      var x = window.location.pathname;
  alert(x);
  &lt;/script&gt;
  </code></pre>
  
  <p>I am getting the value <code>/myproject/en/test.html</code> in variable <code>x</code>, but not able to use the value in the meta tag as below-</p>
  
  <pre><code>&lt;link rel="icon" href="https://mywebsite.com ${x}"&gt;
  </code></pre>
  
  <p>How can I pass <code>x</code>'s value here in the meta tag? Or, is there any other way to achieve it?</p>