Temp fix for Broken Hold Links
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 24 May 2017 20:22:02 +0000 (16:22 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 9 Aug 2019 13:20:54 +0000 (09:20 -0400)
Temporary fix for https://bugs.launchpad.net/evergreen/+bug/1687319

Not an ideal fix because it requires javascript, but it'll do for now.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/place_hold_result.tt2

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