From 10709847756fd273520698cd19e865d868bc8259 Mon Sep 17 00:00:00 2001 From: jcerjak Date: Mon, 16 Dec 2013 19:01:12 +0100 Subject: [PATCH] use getPhysicalPath instead of absolute_url_path, refs #152 --- src/plone/api/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plone/api/content.py b/src/plone/api/content.py index 221b37f..703cdfd 100644 --- a/src/plone/api/content.py +++ b/src/plone/api/content.py @@ -130,7 +130,7 @@ def get(path=None, UID=None): """ if path: site = portal.get() - site_absolute_path = site.absolute_url_path() + site_absolute_path = '/'.join(site.getPhysicalPath()) if not path.startswith('{0}'.format(site_absolute_path)): path = '{0}{1}'.format(site_absolute_path, path)