use getPhysicalPath instead of absolute_url_path, refs #152

This commit is contained in:
jcerjak 2013-12-16 19:01:12 +01:00
parent d0104546ba
commit 1070984775
1 changed files with 1 additions and 1 deletions

View File

@ -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)