Provide option to include canonical URL links

Created on 1 December 2022, almost 2 years ago
Updated 1 March 2024, 9 months ago

Problem/Motivation

Printable output is typically lighter on theme and more content rich by proportion, can cause print views to be surfaced more readily in search results.

Including a <link rel="canonical"> in the default printable HTML which directed to the canonical entity view would help search engines direct folks to the preferred page.

Steps to reproduce

Search for content on an affected site where the printable URL is surfaced first. (A search for inurl:node inurl:printable/print may produce some candidates, but this is dependent on the state of search engine indexes!)

An affected page will have the node/entity content in a print view, with a link (but not a canonical link) to the regular content display.

Proposed resolution

Remaining tasks

  • [ ] Add a configuration to enable the new behaviour
  • [ ] Implement the behaviour for entities
  • [ ] Add test coverage
  • [ ] Review

User interface changes

  • New configuration item

API changes

  • New template variable

Data model changes

  • New configuration schema item
โœจ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand xurizaemon ลŒtepoti, Aotearoa ๐Ÿ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024