Description
The GUI editor keeps renaming links. In text mode I might add: "SomeFile". When I edit this in the GUI it will rewrite it either to "Some/Directory/SomeFile" or "/SomeFile". If you use the GUI editor to create the link by typing "SomeFile", highlighting that text, and then clicking on the link button to provide the link it will also be changed. Why can't Moin respect the text that I provided?
General rule: It happens when the link text is only one word and is also equal to the last word of the linked wiki page. See /TestPage for details.
Steps to reproduce
- Create wiki
- Edit home page using GUI editor
Add "SomeFile" to text
Highlight text "SomeFile"
- Click on insert/edit link button in FCK
- Type in "Some/Directory/SomeFile" under page name
- Click ok and save the page
Notice that link appears as "Some/Directory/SomeFile" on saved page and not "SomeFile".
Example
Details
This Wiki.
Workaround
Edit pages using text editor.
But for users who doesn't know this bug exists only the moderators can restore the correct link.
Discussion
The problem is that the GUI editor is NOT editing your wiki text, but the html rendered from your wiki text. The GUI editor converter then (after save) has to reverse-engineer that html and find the appropriate wiki text for it - that's not easy in any case.
If you can give a concrete example on /TestPage, I can have a look if I can improve it.
DominikWagenfuehr: I have created an example on the /TestPage. Please have a look at it. It's annoying and we need to fix it or disable the gui editor because of this mistake.
Plan
- Priority:
Assigned to: ThomasWaldmann
- Status: fixed in 1.6, changeset 1886: 7055054118f4 and also in 1.5 branch