diff --git a/app_web.py b/app_web.py
index f1c3d8c..2233aee 100644
--- a/app_web.py
+++ b/app_web.py
@@ -93,6 +93,7 @@ templates = Jinja2Templates(directory=str(TEMPLATES_DIR))
templates.env.globals["app_url"] = with_url_prefix
templates.env.globals["url_prefix"] = web_url_prefix
+
@app.get("/favicon.ico", include_in_schema=False)
async def favicon_ico():
path = STATIC_DIR / "favicon.png"
@@ -123,6 +124,8 @@ def template_response(request: Request, name: str, context: Dict[str, Any]):
_template_response_new_style = bool(keys) and keys[0] == "request"
ctx = dict(context)
ctx.setdefault("request", request)
+ ctx["app_url"] = with_url_prefix
+ ctx["url_prefix"] = web_url_prefix()
if _template_response_new_style:
return templates.TemplateResponse(request, name, ctx)
return templates.TemplateResponse(name, ctx)
diff --git a/templates/index.html b/templates/index.html
index 162e849..675f7fb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1038,7 +1038,7 @@