[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:


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


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


    <img src="../test.png" />


I'm testing the result

connecting to

Everything is ok

Now i'm changing the content of test.html

The new content is




    <img src="../test.png" />


I've just added the head section

Here is the error

connecting to

the image "test.png" is no more displayed

we got a 404 error for this image because the browser is searching for


It seems that base href is not good

Many thanks

** Affects: zope2
     Importance: Undecided
         Status: New

resourceDirectory and html files base href behavior
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