Changes between Initial Version and Version 2 of Ticket #6850
- Timestamp:
- Dec 24, 2015, 6:25:27 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6850
- Property Owner changed from Trap to Ryan J Ollos
-
Property
Status
changed from
new
toaccepted
-
Property
Component
changed from
BackLinksMenuMacro
toBackLinksMacro
-
Ticket #6850 – Description
initial v2 2 2 3 3 This snippet permit to have the right URL link. 4 I wrote black_listed_pattern so that i can submit this ticket.5 4 6 {{{ 5 {{{#!diff 7 6 16a17 8 7 > from trac.resource import get_relative_url 9 8 73c74,79 10 < buf.write(' black_listed_pattern' % self.env.href.wiki(row[0]))9 < buf.write('<li><a href="%s">' % self.env.href.wiki(row[0])) 11 10 --- 12 11 > if row[0].find(":") >= 0 or row[0].startswith("/"): … … 15 14 > # Support relative paths; based on trac/wiki/formatter.py 16 15 > link = get_relative_url(self.env, formatter.resource(id=row[0]), formatter.href) 17 > buf.write(' black_listed_pattern' % link )16 > buf.write('<li><a href="%s">' % link ) 18 17 }}}