Strange behaviour - 3 links which should be the same don't
Hi, Following 3 URLs should return the same content but they don't, why? Link 1 (works) http://reports.eea.eu.int/briefing_2005_3/da Link 2 & 3 (content borked) http://reports.eea.eu.int/briefing_2005_3/da/ http://reports.eea.eu.int/briefing_2005_3/da/index_html Enviroment: Zope 2.7.3 upgraded from 2.6.4 The objects in the url are from ZClasses and index_html is a DTML Method. If I do abstract.decode() the links would work, but since this is a very OLD site and one of the links works I would like to know why before I start changing couple years old templates. Title and Abstract text are UTF8 encoded in a textfield. ZMI form is UTF8 encoded and looks good when you edit it.
On 1/24/06, Sasha Vincic <sasha.vincic@gmail.com> wrote:
Following 3 URLs should return the same content but they don't, why?
Without tracebacks we have little to go on to help you. Please provide them. -- Martijn Pieters
On 1/24/06, Martijn Pieters <mj@zopatista.com> wrote:
On 1/24/06, Sasha Vincic <sasha.vincic@gmail.com> wrote:
Following 3 URLs should return the same content but they don't, why?
Without tracebacks we have little to go on to help you. Please provide them. Well I don't have any tracebacks, no errors just different output even though it should be the same dtml method called. It is probably the same method called but on the first link without the trailing / the utf8 encoded content is displayed right but not in the other two links. Seems as if <dtml-var abstract> is behaving different for the links.
Your two busted links work fine in Firefox 1.5. Kaw usa -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Sasha Vincic Sent: Tuesday, January 24, 2006 12:19 AM To: zope@zope.org Subject: [Zope] Strange behaviour - 3 links which should be the same don't Hi, Following 3 URLs should return the same content but they don't, why? Link 1 (works) http://reports.eea.eu.int/briefing_2005_3/da Link 2 & 3 (content borked) http://reports.eea.eu.int/briefing_2005_3/da/ http://reports.eea.eu.int/briefing_2005_3/da/index_html Enviroment: Zope 2.7.3 upgraded from 2.6.4 The objects in the url are from ZClasses and index_html is a DTML Method. If I do abstract.decode() the links would work, but since this is a very OLD site and one of the links works I would like to know why before I start changing couple years old templates. Title and Abstract text are UTF8 encoded in a textfield. ZMI form is UTF8 encoded and looks good when you edit it. _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Sasha Vincic wrote at 2006-1-24 09:19 +0100:
Following 3 URLs should return the same content but they don't, why?
Link 1 (works) http://reports.eea.eu.int/briefing_2005_3/da
Link 2 & 3 (content borked) http://reports.eea.eu.int/briefing_2005_3/da/ http://reports.eea.eu.int/briefing_2005_3/da/index_html
Enviroment: Zope 2.7.3 upgraded from 2.6.4
The three links may be different with respect to the effective "base" URL. Look at the HTML source code for the pages and watch out for the "base" tag in the "head" of the page. -- Dieter
On 1/24/06, Dieter Maurer <dieter@handshake.de> wrote:
The three links may be different with respect to the effective "base" URL.
The first two have the same base URL which is the same as second link. The third link doesn't have any base, which is strange. Well I got something more to check then. /S
Sasha Vincic wrote at 2006-1-24 23:22 +0100:
On 1/24/06, Dieter Maurer <dieter@handshake.de> wrote:
The three links may be different with respect to the effective "base" URL.
The first two have the same base URL which is the same as second link.
The third link doesn't have any base, which is strange. Well I got something more to check then.
No, that is correct: Zope adds the "base" only when it has modified the URL (e.g. by adding "index_html") in order to inform the browser that its knowledge about the URL is no longer correct. You observation means, that all three URLs are equivalent both from Zope's as well as the browser's point of view. Strange, that you nevertheless see different behaviour. -- Dieter
participants (4)
-
Dieter Maurer -
ken wood -
Martijn Pieters -
Sasha Vincic