Description
Creating links to supbages in GUI-Mode do not lead to creation of a page under the actual one. Instead, wiki will create a top-level page.
Steps to reproduce
- Edit the current page with the GUI editor
- Create a new link with of type wiki with the page name /Subpage
- Go to view mode and click the link to create the page
- Select a template or create a new empty page
- Wiki will create the page as top-level
Example
Details
MoinMoin Version |
Release 1.5.2 [Revision Release] |
OS and Version |
Windows 2003 |
Python Version |
2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] |
Server Setup |
IIS 6.0 |
Server Details |
Virtual Server |
Another user: I also encountered this bug, and after superficial analysis: The GUI editor simply makes an <a href=...> link in which the base url is combined with the name entered into the popup. I.e., for a normal link this might be "http://mywiki.org/NewPage" and for a subpage it'll be http://mywiki.org//NewPage" This dual slash is of course not correct; it SHOULD be "http://mywiki.org/CurrentPage/NewPage". There are two solutions I see: Either fix the javascript editor to correctly detect subpages and make the correct link right away so that this link can be correctly translated to the wiki syntax, or (much simpler and probably therefore better), simply fix the html-to-wiki translater to detect such cases (those with "//" or "/../" I think) to correctly generate wiki syntax.
Workaround
Use Text mode to create the link
Discussion
Plan
- Priority:
- Assigned to:
- Status: fixed in moin--main--1.5--patch-556