|
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