Merge pull request #153 from jcerjak/master
Use getPhysicalPath instead of absolute_url_path in api.content.get()
This commit is contained in:
commit
71d99690bf
|
@ -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)
|
||||
|
||||
|
|
Reference in New Issue