Skip to Content.
Sympa Menu

en - Re: [sympa-users] RE: Incorrect BASE tag in Sympa archive

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaün <address@concealed>
  • To: "Koshokin, Alexey" <address@concealed>
  • Cc: "address@concealed" <address@concealed>
  • Subject: Re: [sympa-users] RE: Incorrect BASE tag in Sympa archive
  • Date: Fri, 07 May 2010 11:40:44 +0200

Hi Alexey,

The HTML <base> tag is inserted by Sympa in all archive browsing web pages. This is required to have proper archive browsing in Sympa while using mhonarc to build HTML versions of messages. A typical value for the base tag would be <base href="https://listes.cru.fr/sympa/arc/sympa-users/2010-05/" />. It works fine for all Sympa sites; the question being "why is it broken on your Sympa server?".

Here is the algorithm sympa uses to build the base_url, which is used to build the <base> tag:
    if ($ENV{'HTTPS'} eq 'on') {
       $param->{'base_url'} = sprintf 'https://%s', &get_header_field('HTTP_HOST');
       $param->{'use_ssl'} = 1;
    }else {
       $param->{'base_url'} = sprintf 'http://%s', &get_header_field('HTTP_HOST');
       $param->{'use_ssl'} = 0;
    }
Note that get_header_field() looks for HTTP_X_FORWARDED_HOST or HTTP_HOST environment variables.
Maybe none of those are defined by your web server...

If you need more support, you should provide us with :
  • what the <base> tag looks like in your case
  • informations about your sympa.conf/wwsympa.conf
  • details about your HTTP server configuration (proxy, etc)

Note that the <base> tag is included in Sympa web pages through the web_tt2/main.tt2 template :
[% IF base %] <base href=""[%" base %]" /> [% END %]

Le 06/05/2010 19:09, Koshokin, Alexey a écrit :
Dear colleagues!
  Is there any idea why Sympa adds this incorrect BASE tag?


-----Original Message-----
From: Koshokin, Alexey 
Sent: Friday, April 02, 2010 11:47 PM
To: 'address@concealed'
Subject: Incorrect BASE tag in Sympa archive

Dear Sympa gurus and especially Sympa developers!

Quite often we have HTML formatted emails with internal HTML bookmarks inside.
Unfortunately having passed through Sympa, the email in Archive obtains incorrect extra HTML tag "BASE". Generally in HTML the tag should include the HTML page name, however in Sympa archive the tag consists only of lone path without HTML file name.

Needless to say, that with that tag inserted, click on the internal HTML link leads to nowhere instead of jumping to certain part of HTML page.

Original email message does not have the "BASE" tag.
I talked to author of Mhonarc to make sure it was not Mhonarc's results.

What's the reason to include the "BASE" tag? Is it possible to disable it or make it correct? 


--
Alexey Koshokin


--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


  




Archive powered by MHonArc 2.6.19+.

Top of Page