--- loncom/homework/lonhomework.pm 2003/10/30 20:22:00 1.156 +++ loncom/homework/lonhomework.pm 2003/11/08 10:44:58 1.157 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.156 2003/10/30 20:22:00 albertel Exp $ +# $Id: lonhomework.pm,v 1.157 2003/11/08 10:44:58 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -644,6 +644,8 @@ sub newproblem { &renderpage($request,$dest); } else { my $url=$request->uri; + my $shownurl=$url; + $shownurl=~s-^/~-/priv/-; my $dest = &Apache::lonnet::filelocation("",$request->uri); my $errormsg; if ($ENV{'form.newfile'}) { @@ -663,7 +665,7 @@ sub newproblem {
$lt{'createnew'} $extension$instructions $lt{'click'} "$lt{'Create'} $extension" $lt{'button'}.