Strip product suffix from anchor links under /help
Problem
We've introduced product badges in the docs site a while ago, but that causes anchor links to be different under /help
.
For example, a heading written like ## New feature **[PREMIUM]**
will render like #new-feature
in the docs site and #new-feature-premium
under /help
.
Proposal
We need to add a filter or sth in GitLab, so that the following suffixes are stripped from anchor links under /help
:
-core
-starter
-premium
-ultimate
-core-only
-starter-only
-premium-only
-ultimate-only
Links
- MR that introduced product badges in the docs site https://gitlab.com/gitlab-com/gitlab-docs/merge_requests/244
- Issue where we're bitten by this https://gitlab.com/gitlab-org/gitlab-ee/issues/5956#note_82312270 https://gitlab.com/gitlab-org/gitlab-ce/issues/52399