diff libervia/server/server.py @ 1202:3f791fbc1643

server: if "redirections" is not set, use "/login" page as default
author Goffi <goffi@goffi.org>
date Fri, 12 Jul 2019 14:58:11 +0200
parents b300eaec53b6
children 251eba911d4d
line wrap: on
line diff
--- a/libervia/server/server.py	Wed Jul 10 08:32:49 2019 +0200
+++ b/libervia/server/server.py	Fri Jul 12 14:58:11 2019 +0200
@@ -345,7 +345,7 @@
 
         # the default root URL, if not redirected
         if not "" in self.redirections:
-            self.redirections[""] = self._getRequestData(C.LIBERVIA_MAIN_PAGE)
+            self.redirections[""] = self._getRequestData(C.LIBERVIA_PAGE_START)
 
     def _setMenu(self, menus):
         menus = menus.get(self.site_name, [])