Edgewall Software
Modify

Opened 20 years ago

Closed 19 years ago

Last modified 18 years ago

#691 closed enhancement (fixed)

relative links in wiki

Reported by: dju` Owned by: Christian Boos
Priority: normal Milestone: 0.9
Component: wiki system Version: devel
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

i'd appreciate creating relative links in wiki pages, by doing:

[../some_dir/ back to home]
[dox/ doxygen documentation]

however, it seems only absolute links beginning by http: are supported.

Attachments (2)

Wiki.patch (1.9 KB ) - added by tom.stivers@… 20 years ago.
patch for trac 0.7.1 implementing relative links
WikiFormatter.patch (2.0 KB ) - added by tom.stivers@… 20 years ago.
patch for trac trunk implementing relative links

Download all attachments as: .zip

Change History (17)

comment:1 by anonymous, 20 years ago

Actually, wouldn't it be more consistent to do something like:

  link:/path/to/something
  or
  [link:/path/to/something name]

Also, it would be nice if the first form would auto-inline images as is done with http:// links now.

comment:2 by anonymous, 20 years ago

Severity: normalenhancement

by tom.stivers@…, 20 years ago

Attachment: Wiki.patch added

patch for trac 0.7.1 implementing relative links

by tom.stivers@…, 20 years ago

Attachment: WikiFormatter.patch added

patch for trac trunk implementing relative links

comment:3 by tom.stivers@…, 20 years ago

Added patches to implement relative links through a link: tag, comments welcome.

comment:4 by anonymous, 20 years ago

Milestone: 0.8
Version: 0.7.1devel

comment:5 by anonymous, 20 years ago

seems to be okay

comment:6 by daniel, 20 years ago

Related to #731.

comment:7 by daniel, 20 years ago

Milestone: 0.80.9
Priority: normallow

comment:8 by Christian Boos, 19 years ago

(I think daniel meant related to #739)

comment:9 by anonymous, 19 years ago

Owner: changed from Jonas Borgström to anonymous
Priority: lownormal
Status: newassigned

Priority raised :) I'll add that to the InterTrac branch.

comment:10 by Christian Boos, 19 years ago

Owner: changed from anonymous to Christian Boos
Status: assignednew

comment:11 by Christian Boos, 19 years ago

It's now implemented in the InterTrac branch, in r1921.

For the syntax, I kept the original proposal, not the link: syntax proposed by Tom.

Also, one additional restriction I added was that the relative link must begin with either a / or a .

This is in case we support alphanumerical changeset names (IIRC, Darcs needs that). Although the regexp for the changeset would come first, I think it is better to have a non-ambiguous syntax.

Therefore, [./here] works, but not [here].

comment:12 by Christian Boos, 19 years ago

Milestone: 0.91.0
Severity: normaltrivial

This is part of the InterTrac branch and as such will be post-poned to 1.0.

comment:13 by Christopher Lenz, 19 years ago

This doesn't seem to be related to InterTrac as far as I can tell. Would it be possible to port this feature to trunk?

comment:14 by Christian Boos, 19 years ago

Milestone: 1.00.9
Status: newassigned

Yes, no problem (no problems expected, at least :) )

comment:15 by Christian Boos, 19 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [2159]

Syntax supported:

  [../some_dir/ back to home]
  [./sibling/ look besides]
  [/dox/ doxygen documentation]
  [//example.com/there there, using the same protocol as here]

Syntax not supported:

  link:/path/to/something
  [link:/path/to/something name]
  [dox/ doxygen documentation]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.