onunez 6 years ago
parent
commit
875979270c

+ 1 - 1
src/app/components/login/login.component.ts

@@ -66,7 +66,7 @@ export class LoginComponent implements OnInit {
         localStorage.setItem('email', this.user.email);
         localStorage.setItem('email', this.user.email);
 
 
         //this.router.navigate([this.returnUrl]);
         //this.router.navigate([this.returnUrl]);
-        window.location.href="/";
+        window.location.href="";
       }, (err) => {
       }, (err) => {
         if(err.error.error.message == "INVALID_EMAIL"){
         if(err.error.error.message == "INVALID_EMAIL"){
           this.error_message = "Correo electrónico inválido";
           this.error_message = "Correo electrónico inválido";

+ 1 - 1
src/app/components/shared/navbar/navbar.component.ts

@@ -145,7 +145,7 @@ export class NavbarComponent implements OnInit {
 
 
     logout() {
     logout() {
       this.auth.logout();
       this.auth.logout();
-      window.location.href="/";
+      window.location.href="";
 
 
       //this.router.navigateByUrl("login");
       //this.router.navigateByUrl("login");
     }
     }

+ 1 - 2
src/app/components/shared/sidebar/sidebar.component.ts

@@ -46,8 +46,7 @@ export class SidebarComponent implements OnInit {
 
 
   logout() {
   logout() {
     this.auth.logout();
     this.auth.logout();
-    window.location.href="/";
-
+    window.location.href="#/login";
     //this.router.navigateByUrl("login");
     //this.router.navigateByUrl("login");
   };
   };