Browse Source

[fix] render.py for home

version-14
Rushabh Mehta 8 years ago
parent
commit
df66dfe941
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      frappe/website/render.py

+ 3
- 2
frappe/website/render.py View File

@@ -23,8 +23,9 @@ class PageNotFoundError(Exception): pass


def render(path=None, http_status_code=None): def render(path=None, http_status_code=None):
"""render html page""" """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 data = None


# if in list of already known 404s, send it # if in list of already known 404s, send it


Loading…
Cancel
Save