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:
@@ -94,5 +94,5 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ request.url_for('static', path='js/settings.js') }}?v=1"></script>
|
||||
<script src="{{ request.scope.get('root_path', '') }}/static/js/settings.js?v=1"></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user