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