SeoCanonicalUrl

An SEO component to add a canonical URL.

This component works with SvelteKit only.

Props

PropRequiredDescription
canonicalUrlnoCanonical URL override.
originyesWebsite origin, e.g., https://maier.tech.

By default, it sets the canonical URL to page.url.pathname, prefixed with origin. You can set a custom canonical URL by providing canonicalUrl.