Skip to content

Fix invalid scoped label documentation link when in Markdown

Heinrich Lee Yu requested to merge fix-scoped-label-doc-link-in-markdown into master

What does this MR do?

When we render scoped labels in Markdown, the documentation link is wrong because it is turned into a repository link by RepositoryLinkFilter.

So the link becomes https://gitlab.com/gitlab-org/gitlab/-/blob/master/help/user/project/labels.md#scoped-labels-premium instead of https://gitlab.com/help/user/project/labels.md#scoped-labels-premium

This makes it an absolute URL so that it is not affected by that filter.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Heinrich Lee Yu

Merge request reports