Append show_lang and main_logo parameters & Fix URL typo (#1585)

This commit is contained in:
Christophe Maudoux 2018-12-15 16:05:48 +01:00
parent fbb37060e2
commit 658a7a88c0
3 changed files with 4 additions and 2 deletions

View File

@ -155,7 +155,7 @@ sub _authAndTrace {
}
else {
my %h = $req->{respHeaders} ? @{ $req->{respHeaders} } : ();
my $s = $type->tsv->{portal}->() . "/lmerror/$res";
my $s = $type->tsv->{portal}->() . "lmerror/$res";
$s =
'<html><head><title>Redirection</title></head><body>'
. qq{<script type="text/javascript">window.location='$s'</script>}

View File

@ -386,7 +386,7 @@ sub goToError {
"Redirect $req->{env}->{REMOTE_ADDR} to lmError (url was $url)");
$class->set_header_out( $req,
'Location' => $class->tsv->{portal}->()
. "/lmerror/$code"
. "lmerror/$code"
. "?url=$urlc_init" );
return $class->REDIRECT;
}

View File

@ -818,6 +818,8 @@ sub lmError {
$self->controlUrl($req);
my %templateParams = (
MAIN_LOGO => $self->conf->{portalMainLogo},
LANGS => $self->conf->{showLanguages},
LOGOUT_URL => $self->conf->{portal} . "?logout=1",
URL => $req->{urldc},
);