[fix] render.py for home

This commit is contained in:
Rushabh Mehta 2017-07-28 15:16:24 +05:30
parent 50d06d1202
commit df66dfe941

View file

@ -23,8 +23,9 @@ class PageNotFoundError(Exception): pass
def render(path=None, http_status_code=None):
"""render html page"""
path = resolve_path(path or frappe.local.request.path)
path = path.strip('/ ')
if not path:
path = frappe.local.request.path
path = resolve_path(path.strip('/ '))
data = None
# if in list of already known 404s, send it