mishunov/webcouturier.dropdownmenu — pull request #11 by claytron (2011-11-16 01:37:28+00:00)
Title: No dropdowns when virtual hosting a sub site at the navigation root

When you use Virtual Host Monster to serve up a sub site as its own domain, the tabPath no longer relates to the main portal. If you have a Plone site like this:

Plone
├── subsite1
│ ├── folder1
│ │ ├── page1
│ │ └── page2
│ └── folder2
└── subsite2

Then set up a VHM rewrite like this:

RewriteRule ^/(.*)$ http://localhost:8080/VirtualHostBase/http/subsite1.example.com:80/Plone/subsite1/VirtualHostRoot/$1 [L,P]

The `folder1` menu item would not expand because it would be trying to do this:

portal.restrictedTraverse('folder1')