diff --git a/frontend/src/components/LoginView.vue b/frontend/src/components/LoginView.vue index a1a0d2c..a9eb444 100644 --- a/frontend/src/components/LoginView.vue +++ b/frontend/src/components/LoginView.vue @@ -31,7 +31,11 @@ const handleLogin = async () => { authStore.showMessage('Starting authentication...', 'info') await authStore.authenticate() authStore.showMessage('Authentication successful!', 'success', 2000) - authStore.currentView = 'profile' + if (location.pathname.startsWith('/auth/')) { + authStore.currentView = 'profile' + } else { + location.reload() + } } catch (error) { authStore.showMessage(`Authentication failed: ${error.message}`, 'error') } diff --git a/frontend/src/components/RegisterView.vue b/frontend/src/components/RegisterView.vue index 532c4a8..87bc9b6 100644 --- a/frontend/src/components/RegisterView.vue +++ b/frontend/src/components/RegisterView.vue @@ -5,7 +5,7 @@