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

feat: adding canonical_url information #106

Merged
merged 2 commits into from Mar 28, 2023

Conversation

adam-ismael
Copy link
Contributor

Adds support for canonical URL.

This PR adds support for rel="canonical" link elements by adding a canonical_url at the top level of the response object. The canonical url meta tag provides information to search engines and other web crawlers about the preferred URL for a given web page.

While rel="canonical" is not strictly a meta tag, it is often included alongside other meta tags.
Notably Facebook will use it as backup if no og:url meta tag is present.

This PR includes the necessary changes to the library's Parser, as well as updated documentation and tests to ensure that the new functionality is working as expected.

@jacktuck
Copy link
Owner

Thanks @adam-ismael will get this merged later

@jacktuck jacktuck merged commit 47d2baa into jacktuck:master Mar 28, 2023
3 checks passed
@github-actions
Copy link

🎉 This PR is included in version 6.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants