Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
var button = $(this);
var context = button.data('return');
if ( context ) {
var button = $(this);
var context = button.data('return');
if ( context ) {
- $('#modalAuth').append('<input type="hidden" name="return" value="'+window.location+'" />');
+ $('#modalAuth').append('<input type="hidden" name="return" value="'+window.location.pathname+window.location.search+'" />');
}
$("#loginModal").modal("show");
});
}
$("#loginModal").modal("show");
});
# back to the page we triggered the login from
my $return = $query->param('return');
if ( $return ) {
# back to the page we triggered the login from
my $return = $query->param('return');
if ( $return ) {
+ my $uri = C4::Context->preference('OPACBaseURL');
+ $uri .= $return;