Skip to content

canonical_url object ​

Last updated View as Markdown

You get the URL of the current page with the language prefix of the request and without the query string.


Example

liquid
<link rel="canonical" href="{{ canonical_url }}">
html
<link rel="canonical" href="https://my-store.youcan.store/products/linen-shirt">