Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - extracting canonical URL #3221

Closed
omerko opened this issue Oct 24, 2018 · 1 comment
Closed

Feature request - extracting canonical URL #3221

omerko opened this issue Oct 24, 2018 · 1 comment
Labels

Comments

@omerko
Copy link
Contributor

omerko commented Oct 24, 2018

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.

@jsnellbaker
Copy link
Collaborator

This issue was fixed and included in the 1.31.0 release (that just came out yesterday). If you have any additional questions/concerns on this topic, please let us know and we'll be happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants