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: Mon, 02 Aug 2010 11:29:24 +0200

Hi Alexey,

The patch works fine on our dev platform (Sympa 6.1.x); no broken links while browsing web archives.

Given the informations you provided on  <https://sourcesup.cru.fr/tracker/?group_id=23&atid=167&func=detail&aid=6879> you are running Sympa 5.3.4. However the patch should work on that Sympa release as well.

Didn't you customize the code or web templates?

If you can send me (offlist) a buggy HTML page, I will have a look at it.

Le 31/07/2010 10:15, Koshokin, Alexey a écrit :

Olivier,

 We applied the patch and it broke the other message-related links on the page (like the Chronological and Thread forward and backward buttons, and the links at the bottom for followup emails).

Have you tested this functionality with the patch? Can you check this patch on your instances?

 

--

a.k.

 

From: Olivier Salaün [mailto:address@concealed]
Sent: Thursday, July 29, 2010 7:58 PM
To: Koshokin, Alexey
Cc: address@concealed
Subject: Re: [sympa-users] RE: Incorrect BASE tag in Sympa archive

 

Hi Alexey,

Eventually we've fixed the BASE set by wwsympa.fcgi to fix the issue you reported.
See <https://sourcesup.cru.fr/tracker/index.php?func=detail&aid=6879&group_id=23&atid=167> for details.

Thanks for reporting this bug.

Le 16/05/2010 16:41, Koshokin, Alexey a écrit :

Voila! The issue has been reproduced easily, try to click on any internal link and instead of jumping to the right section of the page, it fail back to the list if messages. Can you fix this, S.V.P?

 

--

a.k.

 

From: address@concealed [mailto:address@concealed] On Behalf Of Koshokin, Alexey
Sent: Sunday, May 16, 2010 6:38 PM
To: Olivier Salaün
Cc: address@concealed
Subject: RE: [sympa-users] RE: Incorrect BASE tag in Sympa archive

 

Oliver, I will try to reproduce the issue right here in the distribution list. I created a page with list of cities and bookmarks. Hope to see that wrong “BASE” tag inside. Sorry it this disturbs you. J

 

Russian Cities

Ukrainian Cities

Belarusian Citie

 

 

--

a.k.

 

From: address@concealed [mailto:address@concealed] On Behalf Of Koshokin, Alexey
Sent: Friday, May 07, 2010 1:53 PM
To: Olivier Salaün
Cc: address@concealed
Subject: RE: [sympa-users] RE: Incorrect BASE tag in Sympa archive

 

Olivier,

  Our messages usually have embedded links to the same page. To let this working in Sympa, the BASE must include the html file name additionally to the path like https://listes.cru.fr/sympa/arc/sympa-users/2010-05/

 

In other words, if we had in BASE https://listes.cru.fr/sympa/arc/sympa-users/2010-05/msg00016.html instead of what we have now, this would solve the issue.

 

--

a.k.

 

From: Olivier Salaün [mailto:address@concealed]
Sent: Friday, May 07, 2010 1:41 PM
To: Koshokin, Alexey
Cc: address@concealed
Subject: Re: [sympa-users] RE: Incorrect BASE tag in Sympa archive

 

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
 



  • Re: [sympa-users] RE: Incorrect BASE tag in Sympa archive, Olivier Salaün, 08/02/2010

Archive powered by MHonArc 2.6.19+.

Top of Page