diff --git a/admin.html b/admin.html index bba76bc..542b5a1 100644 --- a/admin.html +++ b/admin.html @@ -118,8 +118,8 @@ // Save the token to localStorage localStorage.setItem('token', data.token); - // Redirect to admin dashboard or home page - window.location.href = '/'; + // Redirect to admin dashboard + window.location.href = '/admin/dashboard'; } catch (error) { console.error('Login error:', error);