Commit f29e8d55 authored by Kevin Deldycke's avatar Kevin Deldycke

Always return a path, even for website root.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8664 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0353e74f
......@@ -70,11 +70,15 @@
<key> <string>_body</string> </key>
<value> <string>if reference_path is None:\n
reference_path = context\n
\n
section = reference_path.WebSite_getSectionValue()\n
document = context.WebSite_getDocumentValue()\n
\n
if section is not None and document is not None:\n
return "%s/%s" % (section.WebSite_getUrl(), document.getRelativeUrl())\n
return None\n
\n
# We are at the website root\n
return context.WebSite_getUrl()\n
</string> </value>
</item>
<item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment