Defect #38499
openMarkdown cannot link to wiki pages with hyphen ("-") in their names
0%
Description
To reproduce:
- redmine setup to Markdown (OK)
- create a wiki page named "Tools_-_Online" (OK)
- create a new wiki page, and then type [[Tools_-_Online]]
(OK)
- save the page and verify that instead of having a link to Tools_-_Online, the wiki page displays Tools_-<u>Online which is coloured in yellow as it does not resolve to a valid link (FAIL)
Files
Updated by A Fora over 1 year ago
The third bullet point should read:
- create a new wiki page, and then type
[[Tools_-_Online]]
Updated by Go MAEDA over 1 year ago
I cannot reproduce the issue. [[Tools_-_Online]]
generates a correct link, /projects/<project identifier>/wiki/Tools_-_Online
Updated by Holger Just over 1 year ago
- Status changed from New to Needs feedback
I can also not reproduce this with either the legacy Markdown, nor with Commonmark. If this is still an issue in your Redmine installation, please provide additional details which would allow us to reproduce this issue in a clean vanilla Redmine installation.
In any case, you may want to make sure that there are no (incompatible) plugins messing with your links
Updated by A Fora over 1 year ago
In any case, you may want to make sure that there are no (incompatible) plugins messing with your links
No plugins on my installations at all.
Have just been able to reproduce this on a fresh 5.0.5 install from scratch. There's a little bit of change required in steps to encounter the bug. I'm pasting them below:
To reproduce:
- redmine setup to Markdown (OK)
- create a wiki page named "Tools_-_Online" (OK)
- create a new wiki page, and then type (3 consecutive links): [[Tools_-_Online]] [[Tools_-_Online]] [[Tools_-_Online]]
(OK)
- save the page and verify that instead of having three separate links to Tools_-_Online, the wiki page displays Tools_-<u>Online Tools</u>-<u>Online Tools</u>-_Online
which is coloured in red as it does not resolve to a valid link (s) (FAIL)
Updated by A Fora over 1 year ago
- File clipboard-202305110814-oxvhh.png clipboard-202305110814-oxvhh.png added
- File clipboard-202305110814-3de2e.png clipboard-202305110814-3de2e.png added
Updated by T H over 1 year ago
I can reproduce the issue in Redmine 5.0.4 using the CommonMark Markdown formatter. If you put this somewhere in the markdown, it the underscores are interpreted incorrectly as formatting:
[[Tools_-_Online]] [[Tools_-_Online]]
Or:
[[Tools_-_Online]] [[Tools_-_Online]]
Workaround: Use spaces in wiki link instead of underscores (` ` instead of `_`) as the underscore represents a space anyway.
[[Tools - Online]] [[Tools - Online]]