I have just noticed something peculiar with my Zope application. All relative links have stopped working properly and are now referring to the directory above, and therefore failing to find the correct page. eg. /folder1/folder2/folder3/dtmlmethod if i use the relative link "dtmlmethod" in folder3 i get the following error message: cannot find /folder1/folder2/dtmlmethod Has anyone seen this before? I can correct it by using absolute references but I have many such links and they should work as they have been doing. regards garry
garry saddington wrote:
I have just noticed something peculiar with my Zope application. All relative links have stopped working properly and are now referring to the directory above, and therefore failing to find the correct page. eg. /folder1/folder2/folder3/dtmlmethod
if i use the relative link "dtmlmethod" in folder3 i get the following error message:
cannot find /folder1/folder2/dtmlmethod
Has anyone seen this before? I can correct it by using absolute references but I have many such links and they should work as they have been doing.
What does the base-tag say? Johan -- Johan Carlsson Tel: + 46 8 31 24 94 Colliberty Mob: + 46 70 558 25 24 Torsgatan 72 Email: johanc@easypublisher.com SE-113 37 STOCKHOLM
On Monday 27 September 2004 07:01, Johan Carlsson wrote:
garry saddington wrote:
I have just noticed something peculiar with my Zope application. All relative links have stopped working properly and are now referring to the directory above, and therefore failing to find the correct page. eg. /folder1/folder2/folder3/dtmlmethod
if i use the relative link "dtmlmethod" in folder3 i get the following error message:
cannot find /folder1/folder2/dtmlmethod
Has anyone seen this before? I can correct it by using absolute references but I have many such links and they should work as they have been doing.
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. regards garry
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@easypublisher.com SE-113 37 STOCKHOLM
participants (2)
-
garry saddington -
Johan Carlsson