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 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-03-16 15:15:56 +00:00
parent 843378061a
commit ced6c0a2d4
5 changed files with 7 additions and 7 deletions

View File

@@ -185,5 +185,5 @@
{% endblock %}
{% block scripts %}
<script src="{{ request.url_for('static', path='js/dashboard.js') }}?v=9"></script>
<script src="{{ request.scope.get('root_path', '') }}/static/js/dashboard.js?v=9"></script>
{% endblock %}