--- loncom/interface/londocs.pm 2020/03/05 22:35:58 1.484.2.87 +++ loncom/interface/londocs.pm 2020/03/12 07:40:51 1.484.2.88 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.484.2.87 2020/03/05 22:35:58 raeburn Exp $ +# $Id: londocs.pm,v 1.484.2.88 2020/03/12 07:40:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3930,12 +3930,7 @@ END if (&Apache::lonnet::symbverify($symb,$url)) { my $shownsymb = $symb; if ($isexternal) { - if ($url =~ /^([^#]+)#([^#]+)$/) { - $url = $1; - $anchor = $2; - my $escan = &escape('#'); - $shownsymb =~ s/^([^\#]+)#([^\#]+)$/$1$escan$2/; - } + $url =~ s/\#[^#]+$//; if ($container eq 'page') { $url = &Apache::lonnet::clutter($url); }