1
0
mirror of https://github.com/NickKaramoff/toot synced 2025-02-05 20:03:34 +01:00

Fix URLs in <head> (#90)

This commit is contained in:
Nikita Karamov 2025-01-26 17:31:19 +01:00 committed by GitHub
commit e38d3edaf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -24,7 +24,11 @@ and this project adheres to
### Fixed
- `canonical` URL is now always the site's root URL
- this fixes potential data leakage in Google Search Console
- Share2Fedi can be deployed to Deno Deploy again
- OpenGraph tags are now fixed
- `url` used to point to the image URL, instead of the sites URL
### Changed

View File

@ -36,7 +36,7 @@ import package_ from "../../package.json";
/>
<link
rel="canonical"
href={Astro.url}
href={Astro.url.origin}
/>
<meta
property="og:title"
@ -48,11 +48,11 @@ import package_ from "../../package.json";
/>
<meta
property="og:image"
content="/banner.png"
content={new URL("/banner.png", Astro.url)}
/>
<meta
property="og:url"
content={`${Astro.url}banner.png`}
content={Astro.url.origin}
/>
<link