diff --git a/app/pods/components/login-button/component.js b/app/pods/components/login-button/component.js index f1c7ddf..420b8f0 100644 --- a/app/pods/components/login-button/component.js +++ b/app/pods/components/login-button/component.js @@ -24,7 +24,7 @@ export default class LoginButton extends Component { } let timeout = setTimeout (logout, 4000) - const logoutUrl = env.oneauthURL + '/logout?redirect=' + env.publicUrl + 'logout' + const logoutUrl = env.oneauthURL + '/logout?redirect=' + env.nuxtPublicUrl + 'logout' window.location.href = logoutUrl } diff --git a/app/services/session.js b/app/services/session.js index a5166a4..5b964e2 100644 --- a/app/services/session.js +++ b/app/services/session.js @@ -35,7 +35,7 @@ export default Service.extend({ async invalidate() { await this.api.request('/jwt/logout').catch(err => console.log(err)) localStorage.setItem('app_flow', 'logout') - window.location.href = `${ENV.oneauthURL}/logout?returnTo=${ENV.publicUrl}` + window.location.href = `${ENV.oneauthURL}/logout?returnTo=${ENV.nuxtPublicUrl}` }, validate() {