fix: handle trailing slashes

This commit is contained in:
2025-12-31 23:05:25 +03:00
parent 03cbd2f60b
commit 2c0f65e59f

4
app.py
View File

@@ -78,12 +78,12 @@ def home():
return redirect(url_for("index", lang=helpers.get_best_lang()))
@app.route("/<lang>")
@app.route("/<lang>", strict_slashes=False)
def index(lang):
return helpers.render_localized_template(lang, "index.html")
@app.route("/<lang>/download")
@app.route("/<lang>/download", strict_slashes=False)
def download(lang):
return helpers.render_localized_template(lang, "download.html")