Link rel="alternate" in header doesn't use url alias

Created on 3 July 2025, 2 days ago

Problem/Motivation

The main module automatically adds tag link with attribute rel="alternate" for MD format, but the link that is displayed is not using the url alias (even when submodule markdownify_path is installed), but system entity url (e.g. https://example.ddev.site/node/1.md instead of https://example.ddev.site/my-page-url.md).

When checking the code, there is an option passed to Url object alias. Either this is non-documented or non-existent option. When this line is uncommented, then the generated url has url alias.

Steps to reproduce

Install the module and markdownify_path submodule, allow "Content" (node) to have MD format. Create node or use existing node with url alias. Check the source code of the page and find:

<link rel="alternate" type="text/markdown" title="My Page" href="https://example.ddev.site/node/1.md" />

Expected result:

<link rel="alternate" type="text/markdown" title="My Page" href="https://example.ddev.site/my-page.md" />

Proposed resolution

Remove alias option.

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany a.dmitriiev

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024