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

(-)a/koha-tmpl/opac-tmpl/bootstrap/js/global.js (-1 / +1 lines)
Lines 228-234 $(document).ready(function(){ Link Here
228
        var button = $(this);
228
        var button = $(this);
229
        var context = button.data('return');
229
        var context = button.data('return');
230
        if ( context ) {
230
        if ( context ) {
231
            $('#modalAuth').append('<input type="hidden" name="return" value="'+window.location+'" />');
231
            $('#modalAuth').append('<input type="hidden" name="return" value="'+window.location.pathname+window.location.search+'" />');
232
        }
232
        }
233
        $("#loginModal").modal("show");
233
        $("#loginModal").modal("show");
234
    });
234
    });
(-)a/opac/opac-user.pl (-2 / +3 lines)
Lines 428-435 if ($search_query) { Link Here
428
# back to the page we triggered the login from
428
# back to the page we triggered the login from
429
my $return = $query->param('return');
429
my $return = $query->param('return');
430
if ( $return ) {
430
if ( $return ) {
431
    my $uri = C4::Context->preference('OPACBaseURL');
432
    $uri .= $return;
431
    print $query->redirect(
433
    print $query->redirect(
432
        -uri    => $return,
434
        -uri    => $uri,
433
        -cookie => $cookie,
435
        -cookie => $cookie,
434
    );
436
    );
435
}
437
}
436
- 

Return to bug 31699