diff --git a/src/pages/auth/Callback.vue b/src/pages/auth/Callback.vue index 6807648c..f2b0ec6c 100644 --- a/src/pages/auth/Callback.vue +++ b/src/pages/auth/Callback.vue @@ -42,7 +42,7 @@ export default defineComponent({ // callback url used to init access token and then redirect back of `redirect` const callbackUrl = `${dataBaseUrl}/auth/callback?redirect=${this.redirect}`; // redirect to auth service to get access token then redirect back - const targetUrl = `${authBaseUrl}?redirect=${callbackUrl}`; + const targetUrl = `${authBaseUrl}/auth/login?redirect=${callbackUrl}`; window.location.href = targetUrl; } } diff --git a/src/pages/auth/Login.vue b/src/pages/auth/Login.vue index 7ac29897..063dc10b 100644 --- a/src/pages/auth/Login.vue +++ b/src/pages/auth/Login.vue @@ -19,7 +19,7 @@ export default defineComponent({ // callback url used to init access token and then redirect back of `redirect` const callbackUrl = `${dataBaseUrl}/auth/callback?redirect=${this.redirect}`; // redirect to auth service to get access token then redirect back - const targetUrl = `${authBaseUrl}?redirect=${callbackUrl}`; + const targetUrl = `${authBaseUrl}/auth/login?redirect=${callbackUrl}`; window.location.href = targetUrl; }, methods: {}