Skip to content

Ngx meta.globalmetadata.canonicalurl

Home > @davidlj95/ngx-meta > GlobalMetadata > canonicalUrl

GlobalMetadata.canonicalUrl property

Sets canonical URL for:

If URL resolution feature is enabled, you may use a relative URL here. It will be resolved and the absolute URL will be used instead.

You can also use the special value ANGULAR_ROUTER_URL to use the current Angular router's URL as the relative URL to be resolved into an absolute one.

Signature:

readonly canonicalUrl?: URL | AngularRouterUrl | string | null;