feat(routes): add /market-score route + legacy redirect

Subtask 2/6: Route handler in public blueprint, 301 redirect
from /market-score → /en/market-score for bookmarks without
lang prefix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-24 10:11:07 +01:00
parent c2bf82917a
commit 33aa705ef9
2 changed files with 9 additions and 0 deletions

View File

@@ -292,6 +292,10 @@ def create_app() -> Quart:
async def legacy_suppliers(): async def legacy_suppliers():
return redirect("/en/suppliers", 301) return redirect("/en/suppliers", 301)
@app.route("/market-score")
async def legacy_market_score():
return redirect("/en/market-score", 301)
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# Blueprint registration # Blueprint registration
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------

View File

@@ -59,6 +59,11 @@ async def about():
return await render_template("about.html") return await render_template("about.html")
@bp.route("/market-score")
async def market_score():
return await render_template("market_score.html")
@bp.route("/imprint") @bp.route("/imprint")
async def imprint(): async def imprint():
lang = g.get("lang", "en") lang = g.get("lang", "en")