sveltekit-static-blog-template
sveltekit-static-blog-template copied to clipboard
Canonical Urls and others contain //
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
- referring to images/abc instead /images/abc in blog posts
- removed the extra / in the canonical definition routes/(blog-article)/+layout.svelte)