The [trac] base_url setting is used to set env.abs_hef:
https://trac.edgewall.org/browser/tags/trac-1.4/trac/env.py#L802
https://trac.edgewall.org/browser/tags/trac-1.4/trac/web/main.py#L628

Do we also need the [project] url setting? What is the use-case for which 
[trac] base_url and [project] url differ?

Limited uses of project_url:
./trac/env.py:    project_url = Option('project', 'url', '',
./trac/notification/mail.py:    items = [env.project_url.encode('utf-8'), 
targetid, to_utimestamp(time)]
./trac/notification/mail.py:        headers['X-URL'] = self.env.project_url
./trac/web/chrome.py:            'url': self.env.project_url,
./trac/wiki/formatter.py:        local_url = self.env.project_url or 
self.env.abs_href.base

Further, I don't see project.url used in any templates, except to set the 
configuration option in admin_basics.html:
./trac/admin/templates/admin_basics.html:              <input type="text" 
name="url" size="48" value="${project.url}" />

If both are needed, it would be good if we can document when and how the 
values can differ.

- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-dev/fe0480be-8576-4c50-827c-2935c027003d%40googlegroups.com.

Reply via email to