Renaming wiki page title throws 500 and appends paths instead of replacing
Summary
Renaming the wiki page after the last 9.5 update causes a 500 error on save, and also appends paths to the page instead of change the path.
Steps to reproduce
- Create wiki page with path. e.g.
test/Docs
- Edit wiki page
- Rename title to
blah/Docs
- Page throws 500 error on Save, even though it actually saves the change. (Maybe it's trying to redirect to the previous page which has a different name now?)
-
blah
is added to the path, not replaced. - Even trying to use
/blah/Docs
appends the path again, as per the screenshot.
What is the current bug behavior?
-
After renaming and pressing "Save changes" it goes to the old URL and I get a 500 error. (@jonaskello noted these two in the MR Original post) -
Changing the path in the title will append a new path, not change it.
What is the expected correct behavior?
I would assume that renaming a page with an existing path would remove the old path and add the new path. You could argue that renaming the page test/Docs
with the title blah/Docs
would result in test/blah/Docs
, but in that case renaming with /blah/Docs
should result in blah/Docs