Opened 7 years ago

Closed 3 years ago

#5533 closed defect (fixed)

BackLinks are not correct if you are using multiple trac projects

Reported by: anonymous Owned by: rjollos
Priority: normal Component: BackLinksMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11


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=""

In a multi-environment setup, I need:

a href=""

So, I edited the macro replacing line:

buf.write('[li][a href="%s"]' %[0]))


buf.write('[li][a href="%s"]' %[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 7 years ago by trapanator

  • Status changed from new to assigned

comment:2 Changed 7 years ago by trapanator

I'll give it an eye.

comment:3 Changed 3 years ago by anonymous

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 3 years ago by rjollos

  • Owner changed from trapanator to rjollos
  • Status changed from assigned to new

comment:5 Changed 3 years ago by rjollos

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

In 13390:

Generated href links were not correct in an environment with multiple projects. Fixes #5533.

Add Comment

Modify Ticket

as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.