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.
This commit is contained in:
Caidan Williams
2025-08-25 15:26:42 -07:00
parent 5c04c9e3e3
commit f9118b2729
+1 -1
View File
@@ -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 }})">