From 64bc79fcf92483b85b150eef932b82dec4dad704 Mon Sep 17 00:00:00 2001 From: Yuri Date: Thu, 14 Nov 2024 13:20:41 +0100 Subject: [PATCH] Update link_redirect_view.py Use absolute_url_path so it works well with VHM virtual paths and /PloneSiteID sites --- plone/app/contenttypes/browser/link_redirect_view.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plone/app/contenttypes/browser/link_redirect_view.py b/plone/app/contenttypes/browser/link_redirect_view.py index 645ee5b4..751bb9c7 100644 --- a/plone/app/contenttypes/browser/link_redirect_view.py +++ b/plone/app/contenttypes/browser/link_redirect_view.py @@ -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,