Renaming pages with a subpage fails and creates a new subpage instead
When renaming a page with a subpage we need to rename the folder belonging to the page in question.
Instead we right now rename the Readme.md
inside the folder. This effectively moves the page into a subpage of the existing page.
The request to rename the page returns a 404 and the browser shows an error "Could not rename the page". From that point on the server and client page list have diverged and the page won't load a preview anymore.
On reload the previous page is empty (a new Readme.md
was created in its place) and the previous content lives on as a subpage.