diff libervia/server/pages.py @ 1175:ab858db9dbee

server: fixed getPagePathFromURI
author Goffi <goffi@goffi.org>
date Fri, 03 May 2019 20:52:56 +0200
parents 0f37b65fe7c2
children 75c5e8d21c7d
line wrap: on
line diff
--- a/libervia/server/pages.py	Fri May 03 20:52:13 2019 +0200
+++ b/libervia/server/pages.py	Fri May 03 20:52:56 2019 +0200
@@ -506,7 +506,7 @@
         return self.vhost_root.getPageByName(name)
 
     def getPagePathFromURI(self, uri):
-        return self.vhost.getPagePathFromURI(uri)
+        return self.vhost_root.getPagePathFromURI(uri)
 
     def getPageRedirectURL(self, request, page_name=u"login", url=None):
         """generate URL for a page with redirect_url parameter set