From e0dba3994a3808ec8b4e2f54b23b162bc6c3e523 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 29 Mar 2013 13:36:17 -0400 Subject: [PATCH] LP 1126545 repair staff 'return to results' tpac link Strip the extra "/" from the URL created by the "return to results" button in the staff client TPAC view. Havin the extra "/" in place prevents the next/previous links from functioning. Signed-off-by: Bill Erickson Signed-off-by: Jason Etheridge --- Open-ILS/web/js/ui/default/opac/staff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/opac/staff.js b/Open-ILS/web/js/ui/default/opac/staff.js index 9bfc69e2da..e5db0087b4 100644 --- a/Open-ILS/web/js/ui/default/opac/staff.js +++ b/Open-ILS/web/js/ui/default/opac/staff.js @@ -120,7 +120,7 @@ function rdetail_next_prev_actions(index, count, prev, next, start, end, results replace the recid and args on location.href to get the new URL */ function fullurl(url) { if (url.match(/eg\/opac\/results/)) { - return location.href.replace(/eg\/opac\/.+$/, url); + return location.href.replace(/\/eg\/opac\/.+$/, url); } else { return location.href.replace(/\/\d+\??.*/, '/' + url); } -- 2.43.2