From f29e8d553951717d6f66fb73175106dea71752ec Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Fri, 21 Jul 2006 11:57:52 +0000
Subject: [PATCH] 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
---
 .../erp5_web/WebSite_getDocumentPhysicalPath.xml            | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml
index 7ee0c82db6..684ca9b477 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml
@@ -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>
-- 
2.30.9