Skip to content
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

avoid using getPhysicalPath in link_redirect_view display #709

Open
yurj opened this issue Nov 13, 2024 · 1 comment
Open

avoid using getPhysicalPath in link_redirect_view display #709

yurj opened this issue Nov 13, 2024 · 1 comment

Comments

@yurj
Copy link
Contributor

yurj commented Nov 13, 2024

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

@yurj
Copy link
Contributor Author

yurj commented Nov 14, 2024

see comment #710 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant