Incorrect location for Wiki page when manually editing the title
Steps to reproduce
- Go to the "Wiki" section
- Click "New page"
- Type "page/slug"
- Click "Create page"
- Replace the "Title" with "Slug"
(If possible, please create an example project here on GitLab.com that exhibits the problematic behaviour, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version)
What is the current bug behavior?
The page "Slug" is created in the root directory.
What is the expected correct behavior?
The page "Slug" should be created in the "page" directory.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Output of checks
This bug happens on GitLab.com
(If you can, link to the line of code that might be responsible for the problem)