[fix] strip (/ ) from route when rendering page
This commit is contained in:
parent
8f3643a57c
commit
cf23ef1eb3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue