Fix metadata_canonical_path URL
What does this MR do and why?
Fixes metadata_canonical_path
URL in patch release blog post template.
Currently the patch release blog post MR template creates a canonical_path
URL that ends in .html.md
- same as file_name. However, if canonical_url
is left as-is (with .html.md
ending), this will result in the blog post having a canonical_url that results in 404 error.
For example, the 17.3.2 blog post has a canonical_url
ending in .html.md
This is rendered in the source code as:
<link href="https://about.gitlab.com/releases/2024/09/11/patch-release-gitlab-17-3-2-released.html.md" rel="canonical">
However, visiting https://about.gitlab.com/releases/2024/09/11/patch-release-gitlab-17-3-2-released.html.md results in 404 error.
Replacing the .html.md
ending with /
in metadata_canonical_path
will generate a canonical_path URL that works as expected:
- Non-working: https://about.gitlab.com/releases/2024/09/11/patch-release-gitlab-17-3-2-released.html.md
☹ - Working: https://about.gitlab.com/releases/2024/09/11/patch-release-gitlab-17-3-2-released/
😀
Content
- Fix metadata_canonical_path URL
Author Check-list
-
Has documentation been updated?
Edited by Greg Myers