|
meta = "/".join(obj.getPhysicalPath()[2:]) |
display['meta'] should carry the path from the portal instead of obj.getPhysicalPath()[2:] which contains '/Plone/'. I've found this way to calculate it:
https://5.docs.plone.org/develop/plone/serving/traversing.html#getting-item-path-relative-to-the-site-root
plone.app.contenttypes/plone/app/contenttypes/browser/link_redirect_view.py
Line 114 in 450888e
display['meta'] should carry the path from the portal instead of obj.getPhysicalPath()[2:] which contains '/Plone/'. I've found this way to calculate it:
https://5.docs.plone.org/develop/plone/serving/traversing.html#getting-item-path-relative-to-the-site-root