resourceDirectory and html files base href behavior
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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:
/>
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://
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://
the image "test.png" is no more displayed
we got a 404 error for this image because the browser is searching for
http://
It seems that base href is not good
Many thanks
You can close the ticket.
Bug caused by a third party product.
Sorry