--- loncom/interface/londocs.pm 2020/03/06 18:53:27 1.669 +++ loncom/interface/londocs.pm 2020/03/06 19:40:57 1.670 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.669 2020/03/06 18:53:27 raeburn Exp $ +# $Id: londocs.pm,v 1.670 2020/03/06 19:40:57 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4203,12 +4203,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); }