Use last insert edition for redirect.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 17 Mar 2012 12:08:53 +0000 (13:08 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 17 Mar 2012 12:08:53 +0000 (13:08 +0100)
src/de/todesbaum/jsite/application/ProjectInserter.java

index 10f3bf4..9471175 100644 (file)
@@ -283,7 +283,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
                        /* check if file was modified. */
                        if (file.getHash().equals(fileOption.getLastInsertHash())) {
                                /* only insert a redirect. */
-                               return new RedirectFileEntry(filename, fileOption.getMimeType(), "SSK@" + project.getRequestURI() + "/" + project.getPath() + "-" + project.getEdition() + "/" + filename);
+                               return new RedirectFileEntry(filename, fileOption.getMimeType(), "SSK@" + project.getRequestURI() + "/" + project.getPath() + "-" + fileOption.getLastInsertEdition() + "/" + filename);
                        }
                        fileOption.setCurrentHash(file.getHash());
                        try {