Defect #29172

Markdown: External links broken

Added by Nikita Remizov about 3 years ago. Updated about 1 month ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution:Wont fix Affected version:3.2.3

Description

markdown.png (104 KB) Marius BALTEANU, 2021-08-12 22:43

commonmark.png (33.8 KB) Marius BALTEANU, 2021-08-12 22:43


Related issues

Related to Redmine - Patch #32424: CommonMark Markdown Text Formatting New

History

#1 Updated by Nikita Remizov about 3 years ago

Probably related with Defect #22967

#3 Updated by Nikita Remizov about 3 years ago

One more example of broken link: [Letters](https://yandex.ru/search/?text=кол-во) - so any no latin letter broke link.

#4 Updated by Holger Just about 3 years ago

URIs are defined in RFC 3986 to be allowed to only contain a defined subset of ASCII characters. All other characters must be encoded.

Browsers often perform this automatically. Thus, when you enter the checkmark character in your browser's address bar, it encodes the character to %E2%9C%93 before it is sent to the server. This is the canonical URI representation. Redmine now needs to ensure at various places that some URIs are valid. It does this by attempting to parse the URI according to the rules of RFC 3986. In the case of "special" or cyrillic characters, this fails since these characters are not allowed in a valid URI verbatim.

As a workaround, you need to ensure that URIs are properly encoded when entering them in Redmine. Many browsers, including Chrome and Firefox automatically copy an encoded URL to your clipboard when copying a URL from the address bar which you can use for this purpose.

#5 Updated by Jan from Planio www.plan.io almost 2 years ago

  • Related to Patch #32424: CommonMark Markdown Text Formatting added

#6 Updated by Marius BALTEANU about 1 month ago

I'm closing this as "Won't fix" because the new CommonMark formatter available in Redmine 5.0.0 (#32424) correctly renders the links. The current Markdown implementation based on RedCarpet is going to be dropped in the future versions. Migrating to the new CommonMark Markdown (Github Flavoured) engine is recommended.

Current Markdown:

CommonMark Markdon:

Also available in: Atom PDF