[zope2-tracker] [Bug 447420] [NEW] resourceDirectory and html files base href behavior
macadames
jeanmat.grimaldi at gmail.com
Fri Oct 9 13:19:29 EDT 2009
Public bug reported:
HI,
I'm trying to use resourceDirectory to put external products inside,
These products could have html, javascript and any kind of resources.
Here is my problem
I create a resource directory in zcml
============================
<browser:resourceDirectory
name="myresourcedir"
directory="myresourcedir"
/>
I create the resource directory and some resources inside
==============================================
i create a directory named "myresourcedir"
inside i put an image named "test.png"
inside i create a subdirectory called "toto"
inside this subdirectory i create a html file called "test.html" with this content
<html>
<body>
<img src="../test.png" />
</body>
</html>
I'm testing the result
================
connecting to
http://localhost:8080/mysite/++resource++myresourcedir/toto/test.html
Everything is ok
Now i'm changing the content of test.html
================================
The new content is
<html>
<head>
</head>
<body>
<img src="../test.png" />
</body>
</html>
I've just added the head section
Here is the error
=============
connecting to
http://localhost:8080/mysite/++resource++myresourcedir/toto/test.html
the image "test.png" is no more displayed
we got a 404 error for this image because the browser is searching for
http://localhost:8080/mysite/++resource++myresourcedir/toto/test.png
It seems that base href is not good
Many thanks
** Affects: zope2
Importance: Undecided
Status: New
--
resourceDirectory and html files base href behavior
https://bugs.launchpad.net/bugs/447420
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
More information about the zope2-tracker
mailing list