Edgewall Software

Ticket #691 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 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:

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@… 4 years ago.
patch for trac 0.7.1 implementing relative links
WikiFormatter.patch (2.0 kB) - added by tom.stivers@… 4 years ago.
patch for trac trunk implementing relative links

Change History

Changed 4 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.

Changed 4 years ago by anonymous

  • severity changed from normal to enhancement

Changed 4 years ago by tom.stivers@…

patch for trac 0.7.1 implementing relative links

Changed 4 years ago by tom.stivers@…

patch for trac trunk implementing relative links

Changed 4 years ago by tom.stivers@…

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

Changed 4 years ago by anonymous

  • version changed from 0.7.1 to devel
  • milestone set to 0.8

Changed 4 years ago by anonymous

seems to be okay

Changed 4 years ago by daniel

Related to #731.

Changed 4 years ago by daniel

  • priority changed from normal to low
  • milestone changed from 0.8 to 0.9

Changed 3 years ago by cboos

(I think daniel meant related to #739)

Changed 3 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.

Changed 3 years ago by cboos

  • owner changed from anonymous to cboos
  • status changed from assigned to new

Changed 3 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].

Changed 3 years ago by cboos

  • severity changed from normal to trivial
  • milestone changed from 0.9 to 1.0

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

Changed 3 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?

Changed 3 years ago by cboos

  • status changed from new to assigned
  • milestone changed from 1.0 to 0.9

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

Changed 3 years ago by cboos

  • status changed from assigned to closed
  • resolution set to fixed

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]

Add/Change #691 (relative links in wiki)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.