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)
committerBen Shum <bshum@biblio.org>
Sat, 30 Mar 2013 20:07:54 +0000 (16:07 -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>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/ui/default/opac/staff.js

index 6e2cbda..d50653b 100644 (file)
@@ -99,7 +99,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);
         }