Insert the canonical tag into all content, not just into nodes

Created on 4 December 2010, over 14 years ago
Updated 10 May 2025, 2 days ago

The canonical tag is missing from the front page. However, all the inner pages contain it. Add the canonical tag into the front page:

This is a problem because right now all the Drupal sites have duplicate content on the front page. These are all duplicates:

http://example.com/
http://example.com/node
http://example.com/node/

The best solution would be to automatically 301 redirect http://example.com/node to http://example.com/, but until that the canonical tag is a good solution.

And if you promote your front page using Google Adwords, you end up with duplicate content, too:

http://example.com/?gclid=CJeVnMD30qUCFc0g3wodRT1Jjw

That's why the canonical tag is a must-have on the front page, and on all pages.

✨ Feature request
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

path.module

Created by

πŸ‡­πŸ‡ΊHungary Bence

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for sharing your idea for improving Drupal.

    We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024