Fix [more] links on Gopher
authorNiki Roo <niki@nikiroo.be>
Tue, 8 Aug 2017 17:27:58 +0000 (19:27 +0200)
committerNiki Roo <niki@nikiroo.be>
Tue, 8 Aug 2017 17:27:58 +0000 (19:27 +0200)
src/be/nikiroo/gofetch/Fetcher.java

index 496b2f7602c59e6d7330b15d41626f6d14e5dcb7..6a44925ce1293885e15ee70c16f63d76d028a762 100644 (file)
@@ -196,8 +196,8 @@ public class Fetcher {
                        boolean last = i == headers.length - 1;
                        if (enoughStories || last) {
                                if (!last) {
-                                       gopherLines.add(getLink("More", "/.cache_" + (page + 1),
-                                                       false));
+                                       gopherLines.add(getLink("More", preselector + ".cache_"
+                                                       + (page + 1), false));
                                        htmlLines.add(getLink("More", "index_" + (page + 1)
                                                        + ".html", true));
                                }