Output <link rel="alternate" on HTML version of the entity

Created on 12 March 2025, 27 days ago

Problem/Motivation

link rel="alternate" allows us to indicate that this page is also available in another version. It is already used for translated content, for example, and helps avoid duplicate content penalties from search engines.
We want to include a link rel="alternate" on the HTML page to point to the MD version.
The canonical URL already points to the main HTML page and helps search engines understand which version to index, hence no action needed on the MD output.

Proposed resolution

Output <link rel="alternate" type="text/markdown" title="<entity title>" href="<entity_type>/<entity_id>.md"> in <head> section of the HTML page.

Remaining tasks

-

User interface changes

none

API changes

none

Data model changes

none

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States christophweber

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

Comments & Activities

Production build 0.71.5 2024