Patch #16313

Allow to link to an achor of the current wikipage

Added by Holger Just almost 4 years ago. Updated about 1 month ago.

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


Category:Text formatting
Target version:4.1.0


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


#1 Updated by Go MAEDA 3 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 about 1 month ago

Tests for this feature.

#3 Updated by Go MAEDA about 1 month 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.

Also available in: Atom PDF