Skip to content

Relax constraint on Wiki IDs, since subdirectories can contain spaces

Stan Hu requested to merge sh-relax-wiki-slug-constraint into master

It looks like if you have a Wiki page in the following form:

group /
group / text.md

For most Wiki pages, GitLab substitutes a space for - in the slug. However, when there are subdirectories involved, the space is left untouched. This causes an exception because the id constraints in the route prevent this from being a valid route.

Removing the constraint fixes the problem.

Closes #30357 (closed)

Merge request reports