Closed mamoep closed 1 year ago
I tried to follow the code to find out more about this issue. plone.app.contenttypes uses tal:attributes="src item/MimeTypeIcon">
in the template showing the list. MimeTypeIcon function comes from plone.app.contentlisting. This function uses getNavigationRoot from plone.app.layout to create the path to the Mime Icon.
I think the function MimeTypeIcon should use a different approach for URL lookup to get the correct absolute URL in virtual environments.
Probably resolved by commit https://github.com/plone/plone.app.contentlisting/pull/46, tests are ongoing
BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)
What I did:
install.sh --target=/test/plone5 --build-python zeo
RewriteRule ^/News($|/.*) http://localhost:9090/VirtualHostBase/https/%{SERVER_NAME}/Plone/VirtualHostRoot/_vh_News$1 [L,P]
What I expect to happen:
list view & table view of the Plone folder containing the files should show the file type icon
What actually happened:
Icons are broken. Apache Rewrite Rule doesn't work, because the icon is referenced with an absolute path, starting with /Plone
When I open the file, the icon is shown, as it is referenced relative there. Screenshot:
Mimetype registry looks ok, example:
What version of Plone/ Addons I am using:
Plone 5.1 pas.plugins.ldap