Browse Source

[fix] strip (/ ) from route when rendering page

version-14
Anand Doshi 10 years ago
parent
commit
cf23ef1eb3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py View File

@@ -17,7 +17,7 @@ class PageNotFoundError(Exception): pass


def render(path, http_status_code=None): def render(path, http_status_code=None):
"""render html page""" """render html page"""
path = resolve_path(path.strip("/"))
path = resolve_path(path.strip("/ "))


try: try:
data = render_page(path) data = render_page(path)


Loading…
Cancel
Save