diff options
-rw-r--r-- | bskyweb/templates/home.html | 1 | ||||
-rw-r--r-- | bskyweb/templates/post.html | 1 | ||||
-rw-r--r-- | bskyweb/templates/profile.html | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/bskyweb/templates/home.html b/bskyweb/templates/home.html index 5d3fbad85..9e5c670a2 100644 --- a/bskyweb/templates/home.html +++ b/bskyweb/templates/home.html @@ -12,6 +12,7 @@ <meta property="og:url" content="https://bsky.app" /> <meta name="twitter:url" content="https://bsky.app" /> + <link rel="canonical" href="https://bsky.app" /> <meta property="og:image" content="https://bsky.app/static/social-card-default-gradient.png" /> <meta property="twitter:image" content="https://bsky.app/static/social-card-default-gradient.png" /> diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html index f6f03c7ee..963af2065 100644 --- a/bskyweb/templates/post.html +++ b/bskyweb/templates/post.html @@ -14,6 +14,7 @@ <meta property="profile:username" content="{{ profileView.Handle }}"> {%- if requestURI %} <meta property="og:url" content="{{ requestURI }}"> + <link rel="canonical" href="{{ requestURI }}" /> {% endif -%} {%- if postView.Author.DisplayName %} <meta property="og:title" content="{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})"> diff --git a/bskyweb/templates/profile.html b/bskyweb/templates/profile.html index ab84dd157..af4180dc1 100644 --- a/bskyweb/templates/profile.html +++ b/bskyweb/templates/profile.html @@ -15,6 +15,7 @@ <meta property="profile:username" content="{{ profileView.Handle }}"> {%- if requestURI %} <meta property="og:url" content="{{ requestURI }}"> + <link rel="canonical" href="{{ requestURI }}" /> {% endif -%} {%- if profileView.DisplayName %} <meta property="og:title" content="{{ profileView.DisplayName }} (@{{ profileView.Handle }})"> |