diff --git a/themes/bootstrap3/js/record.js b/themes/bootstrap3/js/record.js
index 1551d72229d97b4ea935fdf5e10947b97c37929b..b67e1f085aba520732209a031db77499c397bc37 100644
--- a/themes/bootstrap3/js/record.js
+++ b/themes/bootstrap3/js/record.js
@@ -8,7 +8,7 @@ function checkRequestIsValid(element, requestType, blockedClass) {
   var vars = deparam(element.href);
   vars['id'] = recordId;
 
-  var url = VUFIND.getPath() + '/AJAX/JSON?' + $.param({method:'checkRequestIsValid', id: recordId, requestType: requestType, data: vars});
+  var url = path + '/AJAX/JSON?' + $.param({method:'checkRequestIsValid', id: recordId, requestType: requestType, data: vars});
   $.ajax({
     dataType: 'json',
     cache: false,