Modify ↓
Opened 19 years ago
Closed 19 years ago
#357 closed defect (fixed)
Invalid link href
Reported by: | Shun-ichi Goto | Owned by: | John Hampton |
---|---|---|---|
Priority: | normal | Component: | TracBlogPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
blog.cs
uses invalid href starts with href="/tags/..."
and href="/wiki/..."
and it navigates to out of trac project.
There's a patch to use cgi_location
and trac.href.wiki
to fix this issue against r753.
-
0.10/blog/templates/blog.cs
40 40 <div class="postmeta"> 41 41 <ul> 42 42 <?cs if bentry.tags.present != 0 ?> 43 <li>Posted in: <?cs each:tag=bentry.tags.tags ?><a href=" /tags/<?cs var:tag.link ?>"><?cs var:tag.name ?></a><?cs if ! tag.last ?>,<?cs /if ?> <?cs /each ?> <?cs if bentry.tags.more ?><a href="/wiki/<?cs var:bentry.name ?>">...</a><?cs /if ?>43 <li>Posted in: <?cs each:tag=bentry.tags.tags ?><a href="<?cs var:cgi_location ?>/tags/<?cs var:tag.link ?>"><?cs var:tag.name ?></a><?cs if ! tag.last ?>,<?cs /if ?> <?cs /each ?> <?cs if bentry.tags.more ?><a href="<?cs var:trac.href.wiki ?>/<?cs var:bentry.name ?>">...</a><?cs /if ?> 44 44 <?cs /if ?> 45 45 <li><?cs var:bentry.wiki_link ?></li> 46 46 <li><?cs var:bentry.author ?></li>
Attachments (0)
Note: See
TracTickets for help on using
tickets.
(In [755]) * Refactor repository layout such that I can more easily restructure the code without leaving it in a broken state