about: always ensure page has a trailing slash

Otherwise we can't easily embed links to other /about/ pages.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
这个提交包含在:
Jason A. Donenfeld
2015-08-12 14:50:09 +02:00
父节点 13c2d3df04
当前提交 d7034806a4
共有 5 个文件被更改,包括 26 次插入2 次删除

查看文件

@ -689,6 +689,14 @@ void cgit_print_http_headers(void)
exit(0);
}
void cgit_redirect(const char *url, bool permanent)
{
htmlf("Status: %d %s\n", permanent ? 301 : 302, permanent ? "Moved" : "Found");
htmlf("Location: %s\n", url);
htmlf("\n");
exit(0);
}
static void print_rel_vcs_link(const char *url)
{
html("<link rel='vcs-git' href='");