We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b0ea4 commit 7712250Copy full SHA for 7712250
app/pods/components/login-button/component.js
@@ -11,9 +11,7 @@ export default class LoginButton extends Component {
11
@service router;
12
13
tagName = 'span'
14
- loginUrl = `${env.oneauthURL}/oauth/authorize?response_type=code&client_id=${
15
- env.clientId
16
- }&redirect_uri=${env.publicUrl}`;
+ loginUrl = `${env.nuxtPublicUrl}`;
17
18
@action
19
invalidateSession() {
@@ -32,6 +30,8 @@ export default class LoginButton extends Component {
32
30
33
31
34
logIn () {
+ localStorage.setItem('redirectionPath', window.location.pathname)
+ localStorage.setItem('loginPrompt', true)
35
window.location.href = this.loginUrl
36
}
37
0 commit comments