Modify ↓
Opened 14 years ago
Closed 14 years ago
#10141 closed defect (worksforme)
Hierarchical Wiki links work non-deterministic
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | 0.12dev |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
If you add a wiki site with subfolders (A/B whereas A denotes a category and B a page within that categorys), links on page B will fail: if you add another level by setting a link to wiki:A/B/C, this will be linked to either wiki:A/A/B/C or wiki:A/B/C. Is this intended to work link that? See a demo at http://trac.edgewall.org/demo-0.12/wiki/Hierarchical/Link
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Yes, it's intentional. Relative wiki links in a sub-page link to a sibling page of the current page, i.e. at the same level. That means if you edit page
A/B
, and add a link like[wiki:C]
, it will link to pageA/C
.It gets a bit confusing if you add a multi-element link in a sub-page. For example, if you are still editing page
A/B
, and you add a link[wiki:C/D]
, you get a link toA/C/D
.If you don't want this behavior, you can use absolute wiki links instead. Still on page
A/B
, a link[wiki:/A/B/C]
will link toA/B/C
.