about summary refs log tree commit diff
path: root/bskyweb
diff options
context:
space:
mode:
authorCaidan Williams <caidan@internet.dev>2025-08-25 15:26:42 -0700
committerCaidan Williams <caidan@internet.dev>2025-08-25 16:04:45 -0700
commitf9118b2729ccfe6a651e9a1b3f033ebca2251c6d (patch)
treeaca6a6089b7225da64a93c9abb2be845bb892fd1 /bskyweb
parent5c04c9e3e33b817bbd08f80cca4d66888bd958aa (diff)
downloadvoidsky-f9118b2729ccfe6a651e9a1b3f033ebca2251c6d.tar.zst
feat: apply canonical filter to profile template URLs for SEO
Use canonical filter on requestURI in canonical link tag while preserving
original URL with parameters for og:url metadata. This provides clean
canonical URLs for search engines while maintaining full Open Graph URLs.
Diffstat (limited to 'bskyweb')
-rw-r--r--bskyweb/templates/profile.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/bskyweb/templates/profile.html b/bskyweb/templates/profile.html
index af4180dc1..449caa39f 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|canonical }}" />
   {% endif -%}
   {%- if profileView.DisplayName %}
   <meta property="og:title" content="{{ profileView.DisplayName }} (@{{ profileView.Handle }})">