--- loncom/xml/lonxml.pm 2012/12/06 13:54:47 1.536 +++ loncom/xml/lonxml.pm 2012/12/07 17:16:01 1.537 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.536 2012/12/06 13:54:47 raeburn Exp $ +# $Id: lonxml.pm,v 1.537 2012/12/07 17:16:01 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1667,10 +1667,13 @@ sub handler { my ($filetype,$breadcrumbtext); if ($file =~ /\.(sty|css|js|txt|tex)$/) { $filetype=$1; - $env{'request.uri'}=$request->uri; } else { $filetype='html'; + } + unless ($env{'request.uri'}) { $env{'request.uri'}=$request->uri; + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['todocs']); } if ($filetype eq 'sty') { $breadcrumbtext = 'Style File Editor';