Opened 9 years ago

Last modified 3 years ago

#4407 new defect

Only links to anchor on main page

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


I have trac installed under

On the WikiStart I use Toc Macro like this:


Now, if I navigate to /trac the links in the TOC point to, for example, /trac#someanchor, instead of /trac/wiki/TechDoc/Basic#someanchor.

If I navigate to /trac/wiki the links are just fine.

I'm using apache2 with mod_python.

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by g.parrondo@…

Cc: anonymous added; g.parrondo@… removed

I was just investigating and discovered that:

  • The problem doesn't occur with tracd.
  • The problem doesn't occur if I access /trac/ instead of /trac

The latter makes me think that it's not a TocMacro problem.

As a temporary workaround I'm using a RedirectMatch in my apache:

<Location /trac>
   RedirectMatch ^(/trac)$ $1/

Altough it's unclean.

comment:2 Changed 8 years ago by dnedelchev

This is the same issue as the #6345 where a small patch is proposed. Please take a look at it too. I also think the summary of #6345 is more informative than this one.

I confirm the problem persist with Trac 0.12 too.

BTW it seems TocMacro current latest version (for 0.11, last modified in 2008) runs with 0.12 just like it did with 0.11 so I'm happy I can continue to use it after moving from Trac 0.11 to 0.12

comment:3 Changed 3 years ago by Ryan J Ollos

Owner: Noah Kantrowitz deleted

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.

Add Comment

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

Note: See TracTickets for help on using tickets.