web/webconfig.py
branchstable
changeset 4909 a13c1d1ecc5b
parent 4719 aaed3f813ef8
child 5005 b04ec1b6f7da
--- a/web/webconfig.py	Mon Mar 15 11:16:40 2010 +0100
+++ b/web/webconfig.py	Tue Mar 16 12:31:06 2010 +0100
@@ -300,10 +300,10 @@
 
     def _init_base_url(self):
         # normalize base url(s)
-        baseurl = self['base-url']
+        baseurl = self['base-url'] or self.default_base_url()
         if baseurl and baseurl[-1] != '/':
             baseurl += '/'
-            self.global_set_option('base-url', baseurl)
+        self.global_set_option('base-url', baseurl)
         httpsurl = self['https-url']
         if httpsurl and httpsurl[-1] != '/':
             httpsurl += '/'