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:
@@ -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
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user