An SEO component to add a canonical URL.
This component works with SvelteKit only.
| Prop | Required | Description |
|---|---|---|
canonicalUrl | no | Canonical URL override. |
origin | yes | Website 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.