Support canonical URLs for Scaladoc #17703
armanbilge
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Many projects re-publish scaladocs for every published version of the project. Example:
This confuses search engines and "spreads" your hits across many (equally relevant) pages. The correct way to fix this from an SEO perspective is to include a "canonical" link for each page via an HTML tag. For example to https://www.scala-lang.org/api/current/...
Search engines view all versions of the page with the same canonical as effectively the same page. This allows them to "condense" all the hits and consistently deliver the canonical as the "definitive" URL for that page.
Further reading:
Beta Was this translation helpful? Give feedback.
All reactions