Ticket #13053 (confirmed Bug)
plone.app.layout does not work correctly with virtualhostmonster
Reported by: | ruddo | Owned by: | admins@… |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Backend (Python) | Version: | 4.1 |
Keywords: | VHM, searchbox | Cc: |
Description
On my site (URL http://declinefm.com/archives/ ) I see this:
<input id="searchbox_currentfolder_only" class="noborder" type="checkbox" name="path" value="/declinefm.com/declinefm.com/archives" />
inside the portal-searchbox viewlet:
https://github.com/plone/plone.app.layout/blob/master/plone/app/layout/viewlets/searchbox.pt#L39
look at the value of the input. It includes not one, but two references to the site object (called declinefm.com).
The Virtual Host Monster URL used to access this page was:
/VirtualHostBase/http/declinefm.com/declinefm.com/declinefm.com/VirtualHostRoot/archives
(reason for this URL being the actual object path for the plone site inside the ZODB is /declinefm.com/declinefm.com , and the hostname presented to the VHM is declinefm.com)
This leads me to believe that the URL generation for the sectiononly parameter does not take virtualhostmonster into account, when it should.
All other URLs on the site are, mysteriously, correct (which would not make sense if my VHM URL was misconfigured).
plone version 4.1.5