--- loncom/interface/londocs.pm 2016/11/23 16:42:25 1.613 +++ loncom/interface/londocs.pm 2016/11/26 01:28:14 1.614 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.613 2016/11/23 16:42:25 raeburn Exp $ +# $Id: londocs.pm,v 1.614 2016/11/26 01:28:14 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -6679,6 +6679,8 @@ sub editing_js { if (($caller =~ m{^([^#]+)\Q#$anchor\E$})) { $caller = $1.&escape('#').$anchor; } + } else { + $url = $res; } $backtourl = &HTML::Entities::encode(&Apache::lonnet::clutter($url),'<>&"').'?symb='. &HTML::Entities::encode($caller,'<>&"');