Przeglądaj źródła

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

version-14
Anand Doshi 10 lat temu
rodzic
commit
cf23ef1eb3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py Wyświetl plik

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

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

try:
data = render_page(path)


Ładowanie…
Anuluj
Zapisz