Winter CMS resources and help articles

Simple and to the point. Optimized by the community.

How to add a canonical link to your layout in twig

0
by mjauvin, last modified on November 18th, 2022 - Previously published on OctoberTricks

Add this to the section of your layout:

<link rel="canonical" href="{{ url_current() | lower }}" />

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?