From f72972efb8746dd0255a42689da9c99a905ec90f Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 14 Jan 2015 15:27:15 -0500 Subject: [PATCH] Use egCore.env.basePath to construct the URL for last record Signed-off-by: Mike Rylander --- Open-ILS/web/js/ui/default/staff/services/navbar.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/navbar.js b/Open-ILS/web/js/ui/default/staff/services/navbar.js index ba168cbb8a..27c6c63cfc 100644 --- a/Open-ILS/web/js/ui/default/staff/services/navbar.js +++ b/Open-ILS/web/js/ui/default/staff/services/navbar.js @@ -48,9 +48,8 @@ angular.module('egCoreMod') $scope.retrieveLastRecord = function() { var last_record = egCore.hatch.getLocalItem("eg.cat.last_record_retrieved"); if (last_record) { - var reg = new RegExp($location.path()); $window.location.href = - $window.location.href + 'cat/catalog/record/' + last_record; + egCore.env.basePath + 'cat/catalog/record/' + last_record; } } -- 2.11.0