Hello!

Seems like resource URL's are wrong for virtual hosted sites.

For example:

1. Create configure.zcml:

<configure xmlns="http://namespaces.zope.org/browser";>
    <resourceDirectory
        name="images" directory="images" />
    <page
        for="*"
        name="restest.html"
        permission="zope.Public"
        template="test.pt"
        />
</configure>

2. Create test.pt:

<h1 tal:content="context/++resource++images">Resource path</h1>

3. Create a folder 'test' and make it a site.

Then if you go to 'http://localhost:8080/test/++vh++http:localhost:8080/test/++/restest.html' you'll see 'http://localhost:8080/test/@@/images' although expected result is 'http://localhost:8080/@@/images'.

Is it a bug or maybe I'm wrong?

--
Dmitry Vasiliev (dima at hlabs.spb.ru)
    http://hlabs.spb.ru
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to