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

  1. Create wiki
  2. Edit home page using GUI editor
  3. Add "SomeFile" to text

  4. Highlight text "SomeFile"

  5. Click on insert/edit link button in FCK
  6. Type in "Some/Directory/SomeFile" under page name
  7. Click ok and save the page
  8. 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.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/GuiEditorRenameLink (last edited 2007-10-29 19:08:13 by localhost)