diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index d108113..ece0bd0 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -407,13 +407,21 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $rootScope.isVisibleLogin = false; $rootScope.haveRoleAdmin = true; - + if ($rootScope.refreshcheck == null) { - - $location.path('/'); - + + if ($location.path() == "/lab-exercises-detail") { + + $location.url('/'); + } + else { + + $location.path('/'); + } + } - } + + } else {