about summary refs log tree commit diff
path: root/bskyweb
diff options
context:
space:
mode:
authorCaidan Williams <caidan@internet.dev>2025-08-25 15:25:48 -0700
committerCaidan Williams <caidan@internet.dev>2025-08-25 16:04:45 -0700
commit5c04c9e3e33b817bbd08f80cca4d66888bd958aa (patch)
tree80c7d7c30f19e395cbb9e7ee90bebb067cc9eb15 /bskyweb
parent60a1be6de0c10286a658ae7b9bcf0d891965dc55 (diff)
downloadvoidsky-5c04c9e3e33b817bbd08f80cca4d66888bd958aa.tar.zst
feat: apply canonical filter to clean URLs in post template
Uses canonical filter for canonical link tags while preserving original URLs with parameters for og:url metadata, improving SEO through proper URL canonicalization
Diffstat (limited to 'bskyweb')
-rw-r--r--bskyweb/templates/post.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html
index 963af2065..a290b94e7 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|canonical }}" />
   {% endif -%}
   {%- if postView.Author.DisplayName %}
   <meta property="og:title" content="{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})">