From ced6c0a2d4a716e6f4e625f4f598c275e1a20650 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Mon, 16 Mar 2026 15:15:56 +0000 Subject: [PATCH] fix(templates): use root_path for static assets instead of url_for url_for generates absolute URLs with internal host (localhost:5003) which browsers block via ERR_BLOCKED_BY_ORB. Using root_path prefix generates correct relative paths (/gomag/static/...). Co-Authored-By: Claude Sonnet 4.6 --- api/app/templates/base.html | 6 +++--- api/app/templates/dashboard.html | 2 +- api/app/templates/logs.html | 2 +- api/app/templates/mappings.html | 2 +- api/app/templates/settings.html | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/app/templates/base.html b/api/app/templates/base.html index 46f24d8..9f4a29e 100644 --- a/api/app/templates/base.html +++ b/api/app/templates/base.html @@ -6,11 +6,11 @@ {% block title %}GoMag Import Manager{% endblock %} - + {% set rp = request.scope.get('root_path', '') %} + - {% set rp = request.scope.get('root_path', '') %}