Skip to content

How to set up canonical URL service for Themes

This page lists the configurations you must set up in the Canonical URL Service for each Themes website. This ensures that your content matches the resolver configured for your Themes website in PageBuilder.

To ensure SEO best practices, all canonical URLs you configure must have the trailing slash. This prevents an unnecessary CDN redirect to the URL with the trailing slash on the page load. Examples:

PAGE TYPECRITERIAFORMAT
video{"type":"video"}/video/%publish_date|year()%/%publish_date|month()%/%publish_date|day()%/%headlines.basic|slugify()%/
gallery{"type":"gallery"}/gallery/%publish_date|year()%/%publish_date|month()%/%publish_date|day()%/%headlines.basic|slugify()%/
author{"type":"author"}/author/%slug|slugify()%/

Additionally, set the Default Format to the following, which applies to articles:

Terminal window
%websites.{website_id}.website_section.path%/%publish_date|year()%/%publish_date|month()%/%publish_date|day()%/%headlines.basic|slugify()%/