about summary refs log tree commit diff
path: root/bskyweb/templates
diff options
context:
space:
mode:
Diffstat (limited to 'bskyweb/templates')
-rw-r--r--bskyweb/templates/post.html2
-rw-r--r--bskyweb/templates/profile.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html
index 963af2065..1f3f6da4e 100644
--- a/bskyweb/templates/post.html
+++ b/bskyweb/templates/post.html
@@ -14,7 +14,7 @@
   <meta property="profile:username" content="{{ profileView.Handle }}">
   {%- if requestURI %}
   <meta property="og:url" content="{{ requestURI }}">
-  <link rel="canonical" href="{{ requestURI }}" />
+  <link rel="canonical" href="{{ requestURI|canonicalize_url }}" />
   {% endif -%}
   {%- if postView.Author.DisplayName %}
   <meta property="og:title" content="{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})">
diff --git a/bskyweb/templates/profile.html b/bskyweb/templates/profile.html
index af4180dc1..8506a9cff 100644
--- a/bskyweb/templates/profile.html
+++ b/bskyweb/templates/profile.html
@@ -15,7 +15,7 @@
   <meta property="profile:username" content="{{ profileView.Handle }}">
   {%- if requestURI %}
   <meta property="og:url" content="{{ requestURI }}">
-  <link rel="canonical" href="{{ requestURI }}" />
+  <link rel="canonical" href="{{ requestURI|canonicalize_url }}" />
   {% endif -%}
   {%- if profileView.DisplayName %}
   <meta property="og:title" content="{{ profileView.DisplayName }} (@{{ profileView.Handle }})">