WIP: Canonical
[website] / dist / templates / layout.html
index ca9ea29..66625fa 100644 (file)
@@ -34,7 +34,7 @@
     <!--[if IE 8]>
       <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../css/ie8.css" th:href="@{/css/ie8.min.css}"/>
     <![endif]-->
-    <link rel="caononical" href="layout.html" th:href="@{${canonical}?:${uri}}"/>
+    <link rel="caononical" href="layout.html" th:replace="~{:: #canonical}?:~{}"/>
   </head>
   <body
       th:fragment="body(uri)"