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>
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);
}