[Mailman-Users] Incorrect links after list creation

Mark Sapiro msapiro at value.net
Thu Jan 4 01:13:49 CET 2007

Spyro Polymiadis wrote:
>Ah ok - so in actual fact all the links theoretically should have been 
>missing that slash - but the "sanity check" added them in.... is there a 
>way to get the sanity checker to "auto fix" those 2 links as well for 
>the future? if someone forgets the slash again? - other than that - 
>everything else seems to work fine still ;)

Basically what happens is the web list create script sets the list's
web_page_url attribute by interpolating the web host name into
DEFAULT_URL_PATTERN, and it does no checking of the result for a
trailing slash. Thus, the links that it creates for its results page
are missing a slash if DEFAULT_URL_PATTERN has no trailing slash.

Then, the MailList module, adds the trailing slash to the list's
web_page_url attribute the next time the list is accessed so the
absence of the trailing slash in DEFAULT_URL_PATTERN ultimately causes
no harm, but it does cause the two links on the list create results
page to be wrong.

If you want the two links on the create results page to be correct in
the absence of the trailing slash in DEFAULT_URL_PATTERN, you have to
add the same "make sure that web_page_url ends in a slash" code that's
in Mailman/MailList.py to Mailman/Cgi/create.py.

Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list