Skip to content

[SEO] Make the homepage's canonical link tag always point to the homepage URL #1287

@sutibun

Description

@sutibun
  1. Installed Backdrop.

  2. Created a Page with URL "/mysweethome" and set that as the frontpage.

  3. When I looked at the source code for the homepage, I noticed the canonical link tag is pointing to the Page's URL as follows

    <link rel="canonical" href="http://www.example.com/mysweethome" />

This is wrong because search engines will now think the homepage is /mysweethome. Not good for SEO.

Regardless of the Page, the View, etc, the canonical link tag for the homepage/frontpage should always use the homepage's URL.

<link rel="canonical" href="http://www.example.com/" />

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions