Hi Manu,

Am 03.03.2007 um 16:04 schrieb Emmanuel Blot:

> Anyway, would it make sense to add some sanity checks to validate that
> at least one option that defines the base URL is set; the best option
> would be to have a single option to define the base URL, whichever the
> way Trac is run (tracd, mod_python, CGI, etc.).

True. I've had some issues regarding my GoogleSitemapPlugin and the  
use of different base urls, i.e. when people accessed the admin part  
of trac using https (but other pages are accessible without SSL) or  
when trac was accessed via a reverse proxy.

http://trac-hacks.org/ticket/917
http://trac-hacks.org/ticket/919
http://trac-hacks.org/ticket/1009

> As a subsidiary question, what is the best way to retrieve the base
> URL in a plugin (in Trac 0.11)?

Some days ago, Noah told me to use req.href() or req.abs_href() for  
this, but constructing the base URL from the current request is not  
always the best solution. Regards,

-  Christian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to