fixed links generation for local files
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sat, 12 Dec 2015 07:24:38 +0000 (09:24 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sat, 12 Dec 2015 07:24:38 +0000 (09:24 +0200)
src/main/java/eu/svjatoslav/meviz/htmlindexer/FilesystemIndexer.java

index d13306c..51d3504 100755 (executable)
@@ -120,7 +120,7 @@ public class FilesystemIndexer extends AbstractIndexer {
        @Override
        public String getDirectoryUrl(final AbstractFile directory,
                        final IndexingContext context) {
-               return directory.fileName + "/index.html";
+               return Utils.urlEncode(directory.fileName) + "/index.html";
        }
 
        @Override