diff --git a/src/pages/block-sync/block-sync.ts b/src/pages/block-sync/block-sync.ts index 8a17b2c..f540ef2 100644 --- a/src/pages/block-sync/block-sync.ts +++ b/src/pages/block-sync/block-sync.ts @@ -32,8 +32,8 @@ document.addEventListener("DOMContentLoaded", async () => { if (continueBtn) { continueBtn.addEventListener('click', async () => { console.log('๐Ÿ”— Redirecting to pairing page...'); - // Rediriger vers la page de pairing - window.location.href = '/src/pages/home/home.html'; + // Rediriger vers la racine pour que le router charge la page home correctement + window.location.href = '/'; }); } @@ -180,13 +180,13 @@ document.addEventListener("DOMContentLoaded", async () => { updateProgress(100); updateSyncItem('blocksScanned', lastScan.toString(), 'completed'); updateSyncItem('blocksToScan', '0', 'completed'); - + // Redirection automatique aprรจs 3 secondes updateStatus('โœ… Redirection automatique vers le pairing dans 3 secondes...', 'success'); continueBtn.disabled = false; setTimeout(() => { console.log('๐Ÿ”— Auto-redirecting to pairing page...'); - window.location.href = '/src/pages/home/home.html'; + window.location.href = '/'; }, 3000); return; } @@ -226,7 +226,7 @@ document.addEventListener("DOMContentLoaded", async () => { updateStatus('โœ… Redirection automatique vers le pairing dans 3 secondes...', 'success'); setTimeout(() => { console.log('๐Ÿ”— Auto-redirecting to pairing page...'); - window.location.href = '/src/pages/home/home.html'; + window.location.href = '/'; }, 3000); } else { throw new Error('Failed to verify wallet update - last_scan not found');