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 has invalid path in some cases #213

Open
wohnlice opened this issue Aug 19, 2019 · 0 comments
Open

Mime icon has invalid path in some cases #213

wohnlice opened this issue Aug 19, 2019 · 0 comments

Comments

@wohnlice
Copy link

plone.app.portlets.portlets.navigation uses getNavigationRoot from this package to create a src base for the icon. However this uses getPhysicalPath which is inappropriate for some sites.

For example we have the site https://portals.imsweb.com/demo-portal where the path in the ZMI is /db01/plone_demo. This results in the icon

<img class="mime-icon" href="https://portals.imsweb.com/demo-portal/test-folder/Plone-Help-Users.docx/view" src="/db01/plone_demo/++resource++mimetype.icons/docx.png">

The src path won't work in this domain. Is there a reason getNavigationRoot doesn't just return root.absolute_url()? If that can't be the case, the portlet should instead use getNavigationRootObject and use its URL instead of path, I think.

Plone 5.1.5

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