I am trying to add this code to the header in page_container template:
Google told me that this PHP code would get me the current URL:
If I use this in Page_Container, it does not seem to work. Any solutions? Thanks!
<link rel="amphtml" href="https://mercury.postlight.com/amp?url=CURRENTURL">
<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>