diff --git a/C4/Auth.pm b/C4/Auth.pm index 6545681a1a..4b21243058 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -319,7 +319,7 @@ sub get_template_and_user { AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), OPACBaseURL=> ($in->{'query'}->https() ? "https://" : "http://") . $ENV{'SERVER_NAME'} . - ($ENV{'SERVER_PORT'} eq "80" ? '' : ":$ENV{'SERVER_PORT'}"), + ($ENV{'SERVER_PORT'} eq ($in->{'query'}->https() ? "443" : "80") ? '' : ":$ENV{'SERVER_PORT'}"), ); } $template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]);