Project

General

Profile

« Previous | Next » 

Revision 58110

Refactored the landing page to become home and to have a second about page as well

View differences:

authentication.service.ts
93 93
            deleteCookie('openAIREUser');
94 94
            deleteCookie('AccessToken');
95 95
            this.isLoggedIn = false;
96
            this.router.navigate(['/landing']);
96
            this.router.navigate(['/home']);
97 97
          },
98 98
          () => {
99 99
            if ( sessionStorage.getItem('state.location') ) {
......
101 101
              sessionStorage.removeItem('state.location');
102 102
              console.log(`tried to login - returning to state: ${state}`);
103 103
              if ( !this.getIsUserLoggedIn() ) {
104
                console.log('user hasn\'t logged in yet -- going to landing');
105
                this.router.navigate(['/landing']);
104
                console.log('user hasn\'t logged in yet -- going to home');
105
                this.router.navigate(['/home']);
106 106
              } else {
107 107
                this.router.navigate([state]);
108 108
              }

Also available in: Unified diff