Deployment vorbereitet mit URI-Prefix

This commit is contained in:
concierge committed 2026-10-29 16:22:46 +01:00
1 parent b41c3bc3a6
commit fa02a7ade0
11 files changed
+183 -22

No files matched your search

+11
View File
@@ -17,6 +17,17 @@
}
})();
</script>
<script>
// Basis-Pfad für alle clientseitigen URLs. Bei einem Reverse-Proxy
// mit X-Forwarded-Prefix enthält SCRIPT_NAME z. B. "/cmbnet".
window.CMBNET_BASE_URL = {{ request.script_root|tojson }};
window.CMBNET_TENANT = {{ (session.get('tenant_code') or '')|tojson }};
window.CMBNET_APP_URL = function (path) {
const base = (window.CMBNET_BASE_URL || '').replace(/\/+$/, '');
const clean = String(path == null ? '' : path).replace(/^\/+/, '');
return clean ? base + '/' + clean : (base || '/');
};
</script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/pico.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">