Selaa lähdekoodia

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

version-14
Anand Doshi 10 vuotta sitten
vanhempi
commit
cf23ef1eb3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py Näytä tiedosto

@@ -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)


Ladataan…
Peruuta
Tallenna