LP#1402797 Use egCore.env.basePath to construct the URL for last record
authorMike Rylander <mrylander@gmail.com>
Wed, 14 Jan 2015 20:27:15 +0000 (15:27 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 25 Feb 2015 16:16:05 +0000 (11:16 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/services/navbar.js

index ba168cb..27c6c63 100644 (file)
@@ -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;
                     }
                 }