From: Svjatoslav Agejenko Date: Sat, 12 Dec 2015 07:24:38 +0000 (+0200) Subject: fixed links generation for local files X-Git-Tag: meviz-1.0~16 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=0c2f581d34d28b96eb1b8d4eb53a54c2b4f2c43b;p=meviz.git fixed links generation for local files --- diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/FilesystemIndexer.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/FilesystemIndexer.java index d13306c..51d3504 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/FilesystemIndexer.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/FilesystemIndexer.java @@ -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