seimin 2 anos atrás
pai
commit
9eb0d2a2f4
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      assets/js/config.router.js

+ 2 - 2
assets/js/config.router.js

@@ -36,7 +36,7 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
36
                                 if(resp.status == 444){
36
                                 if(resp.status == 444){
37
                                     // $state.go('login.signin');
37
                                     // $state.go('login.signin');
38
                                     if(window.location.hash !== '#/login/signin'){
38
                                     if(window.location.hash !== '#/login/signin'){
39
-                                        window.location.href = '/';
39
+                                        window.location.href = location.origin;
40
                                     }
40
                                     }
41
                                 }
41
                                 }
42
                             }
42
                             }
@@ -199,7 +199,7 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
199
         // $httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
199
         // $httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
200
         // For any unmatched url, redirect to /app/dashboard
200
         // For any unmatched url, redirect to /app/dashboard
201
         // $urlRouterProvider.otherwise("/app/knowledge/forum");
201
         // $urlRouterProvider.otherwise("/app/knowledge/forum");
202
-        // $urlRouterProvider.otherwise("/login/signin");
202
+        $urlRouterProvider.otherwise("/");
203
         //
203
         //
204
         // Set up the states
204
         // Set up the states
205
         $stateProvider.state('app', {
205
         $stateProvider.state('app', {