X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fgofetch%2Foutput%2FHtml.java;h=fea5f67997c0b36ad3f45734051a32ce6d16d911;hb=e236e220a546081f4572447fc2d01764583680ac;hp=c087ef24d91ced582827d5cac32f9dcf8574424f;hpb=d7e6c7c28f58db70c8c33f6557c11576a127a043;p=gofetch.git diff --git a/src/be/nikiroo/gofetch/output/Html.java b/src/be/nikiroo/gofetch/output/Html.java index c087ef2..fea5f67 100644 --- a/src/be/nikiroo/gofetch/output/Html.java +++ b/src/be/nikiroo/gofetch/output/Html.java @@ -13,16 +13,19 @@ public class Html extends Output { @Override public String getIndexHeader() { - String gopherUrl = "gopher://" + hostname + preselector + ":" + port; + String sel = preselector; + if (!sel.isEmpty()) { + sel = "/1" + sel; + } + + String gopherUrl = "gopher://" + hostname + sel + ":" + port; return "

News

\n"// + "

You will find here a few pages full of news, mirroring " + gopherUrl + ".

\n"// - + "
\n"// + "

They are simply scrapped from their associated webpage and updated a few times a day.

\n"// - + "
\n"// ; }