Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/SEO.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ const {
type = 'website',
} = Astro.props;

const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const ogImage = new URL(image, Astro.site);
const siteBase = Astro.site ?? Astro.url.origin;
const canonicalURL = new URL(Astro.url.pathname, siteBase);
const ogImage = new URL(image, siteBase);
const fullTitle = title === 'Spicetify' ? title : `${title} | Spicetify`;
---

Expand Down
Loading