Skip to content

Support canonical URLs for Scaladoc #17702

@armanbilge

Description

@armanbilge

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions