Modify ↓
Opened 15 years ago
Closed 11 years ago
#5533 closed defect (fixed)
BackLinks are not correct if you are using multiple trac projects
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | BackLinksMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Not sure how to describe this, but my /trac URL isn't fixed at a single trac environment. Instead, it points to a directory containing multiple environments.
When the backlink macro generates the link, it generates something like:
a href="http://www.example.com/trac/wiki/Blah"
In a multi-environment setup, I need:
a href="http://www.example.com/trac/myproject/wiki/Blah"
So, I edited the macro replacing line:
buf.write('[li][a href="%s"]' % self.env.href.wiki(row[0]))
with:
buf.write('[li][a href="%s"]' % formatter.req.href.wiki(row[0]))
It seems to work for me. Just FYI if anyone else has this problem.
Please excuse the [] instead of <>. I cannot seem get the site to accept the angle brackets for html.
Attachments (0)
Change History (5)
comment:1 Changed 15 years ago by
Status: | new → assigned |
---|
comment:2 Changed 15 years ago by
comment:3 Changed 11 years ago by
Hello, Have you got it an eye already? I have the same problem, the url is missing the name of the project.
comment:4 Changed 11 years ago by
Owner: | changed from Trap to Ryan J Ollos |
---|---|
Status: | assigned → new |
Note: See
TracTickets for help on using
tickets.
I'll give it an eye.