From 2dff9b343501a18cfb15160fcfde2c1f4e55ea17 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 8 Mar 2024 15:48:15 +0530 Subject: [PATCH] Fixed: app redirection when login into launchpad using url --- src/locales/en.json | 1 + src/views/Home.vue | 6 +++--- src/views/Login.vue | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 67b8a28..930ec23 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,5 +1,6 @@ { "Already active session": "Already active session", + "Failed to fetch user-profile, please try again": "Failed to fetch user-profile, please try again", "Launch Pad": "Launch Pad", "Login": "Login", "Logout": "Logout", diff --git a/src/views/Home.vue b/src/views/Home.vue index 4f8b1f3..8154e25 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -36,17 +36,17 @@

{{ category }}

- +
{{ app.name }} - + - + diff --git a/src/views/Login.vue b/src/views/Login.vue index b46d810..04dab37 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -283,7 +283,7 @@ export default defineComponent({ showToast(translate('Failed to fetch user-profile, please try again')); console.error("error: ", error); } - this.router.push('/') + this.router.replace('/') }, // Pass redirect as true when you want to remove all the url params when user clicks on login async confirmActvSessnLoginOnRedrct(redirect = false) {