--- loncom/interface/lonindexer.pm 2004/05/11 13:22:41 1.106 +++ loncom/interface/lonindexer.pm 2004/05/11 23:27:35 1.107 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.106 2004/05/11 13:22:41 matthew Exp $ +# $Id: lonindexer.pm,v 1.107 2004/05/11 23:27:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -731,7 +731,7 @@ sub display_line { # or absolute paths (for example, from sequences) my $absolute; my $pathprefix; - if ($line=~/^\/res\//) { + if ($line=~m|^/res/| && $startdir ne '') { $absolute=1; $pathprefix=''; } else {