View | Details | Raw Unified | Return to bug 31699
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/js/global.js (+5 lines)
Lines 225-230 $(document).ready(function(){ Link Here
225
225
226
    $(".loginModal-trigger").on("click",function(e){
226
    $(".loginModal-trigger").on("click",function(e){
227
        e.preventDefault();
227
        e.preventDefault();
228
        var button = $(this);
229
        var context = button.data('return');
230
        if ( context ) {
231
            $('#modalAuth').append('<input type="hidden" name="return" value="'+window.location+'" />');
232
        }
228
        $("#loginModal").modal("show");
233
        $("#loginModal").modal("show");
229
    });
234
    });
230
    $("#loginModal").on("shown.bs.modal", function(){
235
    $("#loginModal").on("shown.bs.modal", function(){
(-)a/opac/opac-user.pl (-1 / +10 lines)
Lines 424-427 if ($search_query) { Link Here
424
    );
424
    );
425
}
425
}
426
426
427
# if not an empty string this indicates to return
428
# back to the page we triggered the login from
429
my $return = $query->param('return');
430
if ( $return ) {
431
    print $query->redirect(
432
        -uri    => $return,
433
        -cookie => $cookie,
434
    );
435
}
436
427
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
437
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
428
- 

Return to bug 31699