fix: replace hardcoded static paths with url_for() in admin templates

Use module-specific static route helpers to generate correct paths for
JS files across dev_tools, marketplace, and tenancy templates.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 21:25:04 +01:00
parent 0583dd2cc4
commit bd43e21940
9 changed files with 9 additions and 9 deletions

View File

@@ -8,7 +8,7 @@
{% block alpine_data %}backgroundTasks(){% endblock %}
{% block extra_scripts %}
<script src="/static/admin/js/background-tasks.js"></script>
<script src="{{ url_for('marketplace_static', path='admin/js/background-tasks.js') }}"></script>
{% endblock %}
{% block content %}

View File

@@ -11,7 +11,7 @@
{% block alpine_data %}adminImports(){% endblock %}
{% block extra_scripts %}
<script src="/static/admin/js/imports.js"></script>
<script src="{{ url_for('marketplace_static', path='admin/js/imports.js') }}"></script>
{% endblock %}
{% block content %}

View File

@@ -11,7 +11,7 @@
{% block alpine_data %}adminLetzshop(){% endblock %}
{% block extra_scripts %}
<script src="/static/admin/js/letzshop.js"></script>
<script src="{{ url_for('marketplace_static', path='admin/js/letzshop.js') }}"></script>
{% endblock %}
{% block content %}