fix: redirect to app root instead of home.html for pairing page
**Motivations :** - La page home.html est un fragment HTML, pas une page complète - Elle doit être chargée via le router, pas directement - Redirection vers la racine pour que le router charge correctement la page **Modifications :** - Changer toutes les redirections de /src/pages/home/home.html vers / (racine) - Le router détectera automatiquement que l'utilisateur doit aller au pairing et chargera la page correctement **Pages affectées :** - src/pages/block-sync/block-sync.ts (redirection vers racine au lieu de home.html)
This commit is contained in:
parent
af78165aee
commit
5a1826034e
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user