Skip to content

Some links are not rewritten from md to html

Description

When Hugo builds the site, all links to .md files are supposed to be converted to their HTML counterparts, so that they work on the website. However, this is not happening everywhere.

See #94 (comment 2032190510)

Steps to reproduce

  1. Visit this page: https://new.docs.gitlab.com/user/project/merge_requests/creating_merge_requests/
  2. Click on the very first link (branch naming rules)

Actual result

Expected result

On the Nanoc version, the link goes here: https://docs.gitlab.com/ee/user/project/repository/branches/index.html#name-your-branch

Further details

Links are supposed to be converted from .md to their HTML version here: https://gitlab.com/gitlab-org/technical-writing-group/gitlab-docs-hugo/-/blob/main/themes/gitlab-docs/layouts/_default/_markup/render-link.html?ref_type=heads

Most links are working OK, but something must be different about this one.

Edited by Sarah German