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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions