[wiki] [sites] fix menu link: add "/" to prevent unnecesary redirect || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 05 Jan 2019 18:09:33 +0100

commit 9fcc833917d266d3cf3a435f6e0174568d1eb941
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Jan 5 18:09:20 2019 +0100

    fix menu link: add "/" to prevent unnecesary redirect

diff --git a/build-page.c b/build-page.c
index 2c9c3089..626e17ba 100644
--- a/build-page.c
+++ b/build-page.c
_AT_@ -244,7 +244,7 @@ menu_panel(char *domain, char *page, char *this, int depth)
                 fputs("<li><a", stdout);
                 if (page && !strncmp(newdir, page, strlen(newdir)))
                         fputs(" class=\"thisPage\"", stdout);
- printf(" href=\"//%s/%s\">", domain, newdir);
+ printf(" href=\"//%s/%s/\">", domain, newdir);
                 print_name(*d);
                 fputs("/</a>", stdout);
                 if (page && !strncmp(newdir, page, strlen(newdir))) {
Received on Sat Jan 05 2019 - 18:09:33 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 05 2019 - 18:12:26 CET