--- loncom/interface/lonsyllabus.pm 2018/12/27 18:14:25 1.144 +++ loncom/interface/lonsyllabus.pm 2018/12/27 20:10:31 1.145 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.144 2018/12/27 18:14:25 raeburn Exp $ +# $Id: lonsyllabus.pm,v 1.145 2018/12/27 20:10:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -311,8 +311,10 @@ sub handler { $protocol = 'http' if ($protocol ne 'https'); my $link = $r->uri; if (($protocol eq 'https') && ($external =~ m{^http://})) { - $link .= '?usehttp=1'; - $protocol = 'http'; + unless (&Apache::lonnet::uses_sts()) { + $link .= '?usehttp=1'; + $protocol = 'http'; + } } $link = $protocol.'://'.$hostname.$link; $r->print('
'