[DEPLOY] Migrazione a subdomain nis2.certisource.it

Rimozione prefisso /nis2/ da tutti i path frontend e router:
- index.php: basePath '' (da '/nis2')
- api.js: baseUrl '/api' (da '/nis2/api')
- Tutti i file HTML: path assoluti senza prefisso /nis2/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
DevEnv nis2-agile
2026-02-19 14:05:18 +01:00
co-authored by Claude Sonnet 4.6
parent 92f9366ef4
commit ba21534e6a
14 changed files with 73 additions and 73 deletions
+8 -8
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Impostazioni - NIS2 Agile</title>
<link rel="stylesheet" href="/nis2/css/style.css">
<link rel="stylesheet" href="/css/style.css">
<style>
.settings-tabs {
display: flex;
@@ -483,10 +483,10 @@
</main>
</div>
<script src="/nis2/js/api.js"></script>
<script src="/nis2/js/common.js"></script>
<script src="/nis2/js/i18n.js"></script>
<script src="/nis2/js/help.js"></script>
<script src="/js/api.js"></script>
<script src="/js/common.js"></script>
<script src="/js/i18n.js"></script>
<script src="/js/help.js"></script>
<script>
// ── Auth check ───────────────────────────────────────────
if (!checkAuth()) throw new Error('Not authenticated');
@@ -716,7 +716,7 @@
};
try {
const response = await fetch('/nis2/api/auth/profile', {
const response = await fetch('/api/auth/profile', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
@@ -792,7 +792,7 @@
btn.textContent = 'Aggiornamento...';
try {
const response = await fetch('/nis2/api/auth/change-password', {
const response = await fetch('/api/auth/change-password', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -809,7 +809,7 @@
showNotification('Password modificata. Verrai disconnesso...', 'success');
setTimeout(() => {
api.clearTokens();
window.location.href = '/nis2/login.html';
window.location.href = '/login.html';
}, 2000);
} else {
showNotification(result.message || 'Errore nel cambio password.', 'error');