diff options
author | Caidan Williams <caidan@internet.dev> | 2025-08-25 15:26:42 -0700 |
---|---|---|
committer | Caidan Williams <caidan@internet.dev> | 2025-08-25 16:04:45 -0700 |
commit | f9118b2729ccfe6a651e9a1b3f033ebca2251c6d (patch) | |
tree | aca6a6089b7225da64a93c9abb2be845bb892fd1 /bskyweb | |
parent | 5c04c9e3e33b817bbd08f80cca4d66888bd958aa (diff) | |
download | voidsky-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.html | 2 |
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 }})"> |