--- loncom/lonnet/perl/lonnet.pm 2004/01/13 16:29:41 1.461 +++ loncom/lonnet/perl/lonnet.pm 2004/01/13 16:33:37 1.462 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.461 2004/01/13 16:29:41 www Exp $ +# $Id: lonnet.pm,v 1.462 2004/01/13 16:33:37 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4474,13 +4474,14 @@ sub hreflocation { unless (($file=~m-^http://-i) || ($file=~m-^/-)) { my $finalpath=filelocation($dir,$file); $finalpath=~s-^/home/httpd/html--; - $finalpath=~s-/home/(\w+)/public_html/-/~$1/-; + $finalpath=~s-^/home/(\w+)/public_html/-/~$1/-; return $finalpath; } elsif ($file=~m-^/home-) { $file=~s-^/home/httpd/html--; - $file=~s-/home/(\w+)/public_html/-/~$1/-; + $file=~s-^/home/(\w+)/public_html/-/~$1/-; return $file; } + return $file; } # ------------------------------------------------------------- Declutters URLs