Skip to content

Commit

Permalink
Fix URLs in <head> (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
kytta authored Jan 26, 2025
2 parents e8e16c5 + a514ac5 commit e38d3ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/layouts/layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import package_ from "../../package.json";
/>
<link
rel="canonical"
href={Astro.url}
href={Astro.url.origin}
/>
<meta
property="og:title"
Expand All @@ -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
Expand Down

0 comments on commit e38d3ed

Please sign in to comment.