[Zope] links stopped working
    Johan Carlsson 
    johanc at easypublisher.com
       
    Mon Sep 27 04:23:13 EDT 2004
    
    
  
garry saddington wrote:
> On Monday 27 September 2004 07:01, Johan Carlsson wrote:
>>What does the base-tag say?
>>Johan
> 
> It does not appear to be adding a base-tag. I have some more information: If I 
> let Zope automatically display index_html by using a folder's url then the 
> above behaviour is displayed. However, if I call the index_html explicitly 
> there are no problems. I am confused because this started happening yesterday 
> and is not just isolated to recently edited folders, it also happens in 
> folders that have been in production for over a year.
When accessing a folder directly the base tag gets inserted
(tested on a regulare Folder in Zope 2.7.2), but if
you access the methed (for instance index_html) directly
the base tag doesn't get included.
Now if the base tag doesn't get included for folder the
browser will think the folder is a method hand recalculate
the base to point to the parent folder.
This was changed in Zope 2.7.0:
      - Collector #342: Avoiding insertion of a BASE tag for file objects
        with content-type text/html
If this is the reason I don't know. Looking at 
http://zope.org/Collectors/Zope/342 does indicate that #342 is another 
issue?
To me, looking at the code, this doesn't appear to be as simple as 
checking content-type and for file object (how a file object is defined
I don't know?).
There are other factors controlling if the base-tag gets generated.
One case for instance is if the call needs to look-up the "method",
which defaults to index_html (but I think this also applies to methods
defined by the :method/:action suffix).
What to do?
Maybe, you could add a <base> tag manually in your index_html?
Is this a bug? I don't know?
Cheers,
Johan Carlsson
-- 
Johan Carlsson          Tel: + 46 8 31 24 94
Colliberty              Mob: + 46 70 558 25 24
Torsgatan 72            Email: johanc at easypublisher.com
SE-113 37 STOCKHOLM
    
    
More information about the Zope
mailing list