From: Mike Rylander Date: Wed, 14 Jan 2015 20:27:15 +0000 (-0500) Subject: LP#1402797 Use egCore.env.basePath to construct the URL for last record X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3b87bd33ce8eeae7ea75d37cfe695839e7778967;p=Evergreen.git LP#1402797 Use egCore.env.basePath to construct the URL for last record Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- 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; } }