Skip to content

Feature request - extracting canonical URL #3221

Closed
@omerko

Description

@omerko

Type of issue

Feature request

Description

I need to retrieve the canonical url from the <link rel="canonical".. > element <link (https://www.w3.org/TR/capability-urls/#canonical-urls)

Up till now I used the utils.getWindowTop() function to get the document and run a query on the top level DOM.
But since this function is about to get deprecated, there needs to be some alternative to get the canonical URL.
I suppose it's a common thing for adapters to do, having this as a utility function can be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions