Add redirect for old .html routes
This commit is contained in:
parent
f982ad8ee8
commit
a46930b148
|
@ -94,4 +94,4 @@ def legacy_download():
|
||||||
|
|
||||||
@app.route("/<page>.html")
|
@app.route("/<page>.html")
|
||||||
def legacy_url(page):
|
def legacy_url(page):
|
||||||
return "/{}".format(page)
|
return redirect("/{}".format(page))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user