Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mime-icon in plone/app/contenttypes/browser/templates/listing.pt fails to render icon with VirtualHostMonster #601

Open
Rudd-O opened this issue Apr 29, 2021 · 0 comments

Comments

@Rudd-O
Copy link

Rudd-O commented Apr 29, 2021

Given a Plone site X.com inside a Plone instance, with a VirtualHostMonster configuration that roots https://x.com/ properly as per spec, the mime type icon listing URL ends up being:

                  <td>
                      <a href="https://rudd-o.com/intranet/government-backdoors.jpg/view" class="contenttype-file state-missing-value url" title="File">
                         <img class="mime-icon" src="/X.com/++resource++mimetype.icons/image.png" />
                      </a>
                      <a href="https://x.com/image.jpg/view" class="contenttype-file state-missing-value url" title="File">image.jpg</a>
                      
                    </td>

Note that the img should be rooted at /++resource++mimetype.icons/image.png without the /X.com added at the beginning.

This should be reproducible with vanilla Plone 5.2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant