1
0
mirror of https://github.com/NickKaramoff/toot synced 2025-02-06 04:13:24 +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 ### 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 - 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 ### Changed

View File

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