Fix broken wiki sidebar when slugs contain special characters
What does this MR do and why?
Fix broken wiki sidebar when slugs contain special characters
When parsing slugs using regular expressions, escape special characters first, so that if the slug contains those characters they don't break the sidebar.
Changelog: fixed
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Important: Start with an empty wiki. Perhaps create a new project first.
- Create a few wiki pages with special characters like emojis, parenthesis, braces and square brackets in the title.
- Make sure "Generate page path from title" is checked.
- Notice that after creating these wiki pages, the sidebar still renders correctly. This was previously broken.
Related to #486381 (closed)
Edited by Himanshu Kapoor

