canonical_url
Object
Canonical URL configured for the current page that the user is accessing.
Attributes
None.
Category
Description
This object is an alias for the
page.canonical_url
attribute.
It outputs a string with the value set as the <meta>
description for the
page that the user is currently accessing.
If you repeat a page’s content in multiple spots on your site (for example, a blog post may appear in several places on your site), configuring a canonical URL for a page indicates to search engines like Google which location you prefer to be the single, canonical source for the content.
You’ll typically want to output the canonical_url
within your
layouts like so:
The canonical URL can be configured in a page’s Page Properties dialog in the admin interface.