Patch #16313

Allow to link to an achor of the current wikipage

Added by Holger Just about 4 years ago. Updated 23 days ago.

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

0%

Category:Text formatting
Target version:4.1.0

Description

Currently, it is not possible to link to an anchor of the current wiki page without having to also mention the name of the current wiki page in the link. This becomes tedious quickly if there are many such links. Should the wiki page later be moved, these inline links become quickly obsolete.

The attached patch which we developed for one of our customers at Planio adds the possibility to link directly to an anchor using the following syntax:

  • simple link: [[#Anchor]]
  • link with custom text: [[#Anchor|Link Text]]

wiki_anchors.diff Magnifier (728 Bytes) Holger Just, 2014-03-11 13:38

16313-test.diff Magnifier (792 Bytes) Go MAEDA, 2018-01-08 05:16

16313-confusing-link@2x.png (27.4 KB) Go MAEDA, 2018-01-10 07:50


Related issues

Related to Redmine - Feature #17455: Easier anchor linking / Textile anchor links New

History

#1 Updated by Go MAEDA 5 months ago

  • Target version set to 4.1.0

I think the proposed behavior is more natural than the current behavior. Setting target version to 4.1.0.

#2 Updated by Go MAEDA 4 months ago

Tests for this feature.

#3 Updated by Go MAEDA 3 months ago

I found that the patch generates a confusing link in some cases. If an anchor consists of only numeric characters, the generated link looks like an issue.

#4 Updated by Go MAEDA 23 days ago

  • Related to Feature #17455: Easier anchor linking / Textile anchor links added

#5 Updated by Go MAEDA 23 days ago

Go MAEDA wrote:

I found that the patch generates a confusing link in some cases. If an anchor consists of only numeric characters, the generated link looks like an issue.

Does anyone have any comments on this behavior? I think this is acceptable because people rarely create wiki pages with such names.

Also available in: Atom PDF