-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Images in navigation portlet shown with improper URL #1364
Comments
Slightly related: #1322 |
Closed in plone/plone.app.portlets#79. |
rendered: https://www.plone-demo.info/**plone**/images/image-5/@@images/image/icon works now since: plone/plone.app.portlets@dd25cf7#diff-9696d73de0c15089bb62b2e4bd96d4db but: now renders (without virt host) as should?: (sorry was my bug, did not test with virt host) |
@fgrcon: I actually confirm the double I didn't test with Vhost (is it possible to try it without Apache/ngnix?), but in my new commit I use getURL, which I believe should be already informed by VHM. |
@davilima6 you'r right. The Monster does the translation ... . There is a new pull request plone/plone.app.portlets#83 (even simpler code) which should work in both ways. I dont know, if there is a way testing vhosts without using a Web server. I run my different plone instances on virtual machines with debian - its quite simple to configure apache or nginx ... |
@fgrcon: I didn't understand #83. The only diff from #82 seems to be the var name (from icon_url to thumb_url) and, more importantly, the use of |
@davilima6 : not quite the same: But I am somewhat confused. ,Im just doing some research myself. I branched back to 3.1.3 where i did my last modifications. I still cannot reproduce the bug - it worked a as intented !! |
I updated plone/plone.app.portlets#82 from node/getURL to node/item/getURL because the brain doesn't include the /view/ part. I think it should be ok now :) - aka it seems we need to add some tests. |
@davilima6 👍 Looks great! Now there are correct absolute paths to the thumbs (with or without vhm) which should be safe - i guess the problem was somewhere with virtual host mapping. I closed plone/plone.app.portlets#83 |
See screenshot taken from plone-demo.info.
It shows broken images inside the navigation portlet due to the fact the the src of the images broken. It seems to contain the physical path of the object instead of the correct address related to the VHOST.
Tested with Plone 5.0.2
The text was updated successfully, but these errors were encountered: