Edgewall Software
Modify

Ticket #691 (closed enhancement: fixed)

Opened 8 years ago

Last modified 5 years ago

relative links in wiki

Reported by: dju` Owned by: cboos
Priority: normal Milestone: 0.9
Component: wiki system Version: devel
Severity: trivial Keywords:
Cc:
Release Notes:
API 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

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

Download all attachments as: .zip

Change History

comment:1 Changed 8 years ago by anonymous

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 Changed 7 years ago by anonymous

  • Severity changed from normal to enhancement

Changed 7 years ago by tom.stivers@…

patch for trac 0.7.1 implementing relative links

Changed 7 years ago by tom.stivers@…

patch for trac trunk implementing relative links

comment:3 Changed 7 years ago by tom.stivers@…

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

comment:4 Changed 7 years ago by anonymous

  • Milestone set to 0.8
  • Version changed from 0.7.1 to devel

comment:5 Changed 7 years ago by anonymous

seems to be okay

comment:6 Changed 7 years ago by daniel

Related to #731.

comment:7 Changed 7 years ago by daniel

  • Milestone changed from 0.8 to 0.9
  • Priority changed from normal to low

comment:8 Changed 7 years ago by cboos

(I think daniel meant related to #739)

comment:9 Changed 7 years ago by anonymous

  • Owner changed from jonas to anonymous
  • Priority changed from low to normal
  • Status changed from new to assigned

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

comment:10 Changed 7 years ago by cboos

  • Owner changed from anonymous to cboos
  • Status changed from assigned to new

comment:11 Changed 7 years ago by cboos

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 Changed 6 years ago by cboos

  • Milestone changed from 0.9 to 1.0
  • Severity changed from normal to trivial

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

comment:13 Changed 6 years ago by cmlenz

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 Changed 6 years ago by cboos

  • Milestone changed from 1.0 to 0.9
  • Status changed from new to assigned

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

comment:15 Changed 6 years ago by cboos

  • Resolution set to fixed
  • Status changed from assigned to closed

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]
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.