Skip to content

avoid using getPhysicalPath in link_redirect_view display #709

Description

@yurj

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions