--- loncom/interface/loncommon.pm 2017/12/22 02:00:46 1.1305 +++ loncom/interface/loncommon.pm 2017/12/30 19:51:30 1.1306 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1305 2017/12/22 02:00:46 raeburn Exp $ +# $Id: loncommon.pm,v 1.1306 2017/12/30 19:51:30 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4692,6 +4692,9 @@ sub get_student_view { } if (defined($target)) { $form{'grade_target'} = $target; } $feedurl=&Apache::lonnet::clutter($feedurl); + if (($feedurl =~ /ext\.tool$/) && ($target eq 'tex')) { + $feedurl =~ s{^/adm/wrapper}{}; + } my ($userview,$response)=&Apache::lonnet::ssi_body($feedurl,%form); $userview=~s/\]*\>//gi; $userview=~s/\<\/body\>//gi;