Opened 3 years ago

Closed 3 years ago

#11320 closed defect (fixed)

baseurl in stats page doesn't use trac's configuration

Reported by: lee@… Owned by: seccanj
Priority: normal Component: TestManagerForTracPlugin
Severity: normal Keywords:
Cc: Trac Release:


The baseurl passed to the page template should come from trac.baseurl in trac.ini rather than the request's baseurl.

This causes problems in environments where the trac instance is reverse proxied.

Attachments (1) (23.6 KB) - added by seccanj 3 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by seccanj

  • Status changed from new to accepted

Hi Lee, I've checked the base Trac code and it looks like using the request's href(...) is the right thing to do.

I've modified the stats code to do that and you can find in attachment the patched version. Build it on top of 1.7.3.

Anyway, if you run your Trac instance behind a reverse proxy, you may try raising the corresponding flag in trac.ini, as described here:

use_base_url_for_redirect = True

Please, could you try the patch and tell me if this solves the issue?

Thanks, ciao, Roberto

Changed 3 years ago by seccanj


comment:3 Changed 3 years ago by seccanj

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

Add Comment

Modify Ticket

as closed The owner will remain seccanj.
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.