LP 1126545 repair staff 'return to results' tpac link
authorBill Erickson <berick@esilibrary.com>
Fri, 29 Mar 2013 17:36:17 +0000 (13:36 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 29 Mar 2013 18:41:05 +0000 (14:41 -0400)
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 <berick@esilibrary.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/web/js/ui/default/opac/staff.js

index 9bfc69e..e5db008 100644 (file)
@@ -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);
         }