diff --git a/frontend/js/auth.js b/frontend/js/auth.js index 91144a2..d92eea9 100644 --- a/frontend/js/auth.js +++ b/frontend/js/auth.js @@ -35,7 +35,7 @@ async function handleGuest(e) { SS.setSession(data.token, data.user); sessionStorage.setItem('ss_show_welcome', 'true'); SS.toast('Exploring as guest. Sign up anytime to save your work!'); - setTimeout(() => (window.location.href = '/dashboard'), 500); + setTimeout(() => (window.location.href = '/dashboard.html'), 500); } catch (err) { msg(err.message); busy(btn, false); @@ -110,7 +110,7 @@ async function handleLogin(e) { SS.setSession(data.token, data.user); sessionStorage.setItem('ss_show_welcome', 'true'); SS.toast('Welcome back, ' + data.user.name + '!'); - setTimeout(() => (window.location.href = '/dashboard'), 500); + setTimeout(() => (window.location.href = '/dashboard.html'), 500); } catch (err) { msg(err.message); busy(btn, false); @@ -137,7 +137,7 @@ async function handleSignup(e) { SS.setSession(data.token, data.user); sessionStorage.setItem('ss_show_welcome', 'true'); SS.toast('Account created! Welcome, ' + data.user.name + '.'); - setTimeout(() => (window.location.href = '/dashboard'), 600); + setTimeout(() => (window.location.href = '/dashboard.html'), 600); } catch (err) { msg(err.message); busy(btn, false); @@ -181,7 +181,7 @@ async function handleReset(e) { try { const data = await SS.api('/api/auth/reset-password', { method: 'POST', auth: false, body: { token, password } }); msg(data.message + ' Redirecting to login…', 'success'); - setTimeout(() => (window.location.href = '/login'), 1500); + setTimeout(() => (window.location.href = '/login.html'), 1500); } catch (err) { msg(err.message); busy(btn, false);