sveltekit-static-blog-template icon indicating copy to clipboard operation
sveltekit-static-blog-template copied to clipboard

Canonical Urls and others contain //

Open MarcoPeretti opened this issue 7 months ago • 3 comments

Hello there,

first of all, thank you for the template! it's great a very easy to use.

AHREF reports "Canonical URL has no incoming internal links" as the canonical ulr reported has a //.

I traced it back to the definition of siteBaseUrl which contains a trailing slash which affects og:image, twitter:image and the canonical url.

I fixed it by

  1. referring to images/abc instead /images/abc in blog posts
  2. removed the extra / in the canonical definition routes/(blog-article)/+layout.svelte)

MarcoPeretti avatar Jul 12 '24 13:07 MarcoPeretti