Skip to content

Instantly share code, notes, and snippets.

@adewale
Created September 9, 2016 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adewale/b5da770d99784b6558221e20c6b8c5be to your computer and use it in GitHub Desktop.
Save adewale/b5da770d99784b6558221e20c6b8c5be to your computer and use it in GitHub Desktop.
amp-user-notification on express.co.uk that uses relative URLs and will be broken when https://github.com/ampproject/amphtml/issues/4537 gets changed
<amp-user-notification data-dismiss-href="/setcookielaw" data-show-if-href="/cookielaw?timestamp=TIMESTAMP" id="amp-user-cookie" layout=nodisplay>
<div>
<button on="tap:amp-user-cookie.dismiss">Accept Cookies</button>
By continuing to use the site, you agree to the use of cookies. You can find out more by following <a href="https://www.express.co.uk/cookie-policy/amp" target="_blank">this link</a>
</div>
</amp-user-notification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment