Ngx meta.standard.canonicalurl
Home > @davidlj95/ngx-meta > Standard > canonicalUrl
Standard.canonicalUrl property
Sets the <link rel='canonical'>
HTML element.
Can be set with GlobalMetadata.canonicalUrl.
If URL resolution feature is enabled and a relative URL is provided, an absolute one will be used as value after resolving it.
Signature:
readonly canonicalUrl?: GlobalMetadata['canonicalUrl'];
Remarks
Very relevant for SEO purposes.
Recommendations:
- An absolute URL is preferred. Despite a relative URL is valid too. Checkout the linked StackOverflow answer below for more details.
Provider:
STANDARD_CANONICAL_URL_METADATA_PROVIDER
See also: