Project

General

Profile

Actions

Defect #38499

open

Markdown cannot link to wiki pages with hyphen ("-") in their names

Added by A Fora 11 months ago. Updated 9 months ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

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

Actions #1

Updated by A Fora 11 months ago

The third bullet point should read:

- create a new wiki page, and then type

[[Tools_-_Online]]
Actions #2

Updated by Go MAEDA 11 months ago

  • Description updated (diff)
Actions #3

Updated by Go MAEDA 11 months ago

I cannot reproduce the issue. [[Tools_-_Online]] generates a correct link, /projects/<project identifier>/wiki/Tools_-_Online

Actions #4

Updated by Holger Just 11 months 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

Actions #5

Updated by A Fora 10 months 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)

Actions #7

Updated by T H 9 months 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]]
Actions

Also available in: Atom PDF