diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index edbcc94..b315f80 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -606,7 +606,11 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data } $scope.helpTopicLink = function () { - $rootScope.homeURL = $location.absUrl(); + var x = $location.absUrl(); + var pos = x.lastIndexOf($location.url()); + + $rootScope.homeURL =x.substring(0,pos+1); + var hTopicUrl = $rootScope.homeURL + "content/help/index.html"; var aboutADAM = $rootScope.homeURL + "content/help/about/Adam_Credits_AIA5.html"; @@ -1102,7 +1106,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data $rootScope.siteUrlInfo.userId = paramInfo[1]; console.log("$rootScope.siteUrlInfo.username" + $rootScope.siteUrlInfo.userId); } - else if (paramInfo[0].toLowerCase() == 'account') { + else if (paramInfo[0].toLowerCase() == 'accountnumber') { $rootScope.siteUrlInfo.accountNumber = paramInfo[1]; console.log("$rootScope.siteUrlInfo.accountNumber" + $rootScope.siteUrlInfo.accountNumber); @@ -1542,7 +1546,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data } else { - $location.path('/'); + $location.url('/'); } $rootScope.isVisibleLogin = false; }