Skip to content

Commit

Permalink
Update link_redirect_view.py
Browse files Browse the repository at this point in the history
Use absolute_url_path so it works well with VHM virtual paths and /PloneSiteID sites
  • Loading branch information
yurj authored Nov 14, 2024
1 parent 151aac3 commit 64bc79f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plone/app/contenttypes/browser/link_redirect_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ def display_link(self):
obj = uuidToObject(uid)
if obj:
title = obj.Title()
meta = "/".join(obj.getPhysicalPath()[2:])
if not meta.startswith("/"):
meta = "/" + meta
meta = "/" + obj.absolute_url_path()
return {
"title": title,
"meta": meta,
Expand Down

0 comments on commit 64bc79f

Please sign in to comment.