Revert "Temp fix for Broken Hold Links"
authorChris Sharp <csharp@georgialibraries.org>
Fri, 8 Nov 2019 19:02:20 +0000 (14:02 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 16 Mar 2020 21:15:49 +0000 (17:15 -0400)
This reverts commit d8722f1c7a5b76f965e59ffbf20342a4c48bbeb0.

Open-ILS/src/templates/opac/parts/place_hold_result.tt2

index 59bc6fb..36e7a45 100644 (file)
@@ -155,10 +155,10 @@ function disable_submit() {
        [% END %]
         <span>
         [% IF any_failures OR ctx.general_hold_error %]
-        <a href="javascript:history.go(-2);">[% l('Cancel') %]</a>
+        <a href="[% CGI.param('redirect_to') || CGI.referer | html %]">[% l('Cancel') %]</a>
         [% ELSE %]
         <div class='hold_success_links'>
-          <span><a href="javascript:history.go(-2);">[% l('Continue') %]</a></span>
+          <span><a href="[% CGI.param('redirect_to') || CGI.referer | html %]">[% l('Continue') %]</a></span>
            [% IF ctx.is_staff %]
              [% IF CGI.param('hold_type') == 'C';
                   hold_type_label = l('copy');