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>
This commit is contained in:
Jason A. Donenfeld
2015-08-12 14:50:09 +02:00
parent 13c2d3df04
commit d7034806a4
5 changed files with 26 additions and 2 deletions

3
cgit.c
View File

@ -742,6 +742,9 @@ static void process_request(void)
if (ctx.repo && prepare_repo_cmd())
return;
if (cmd->pre)
cmd->pre();
if (cmd->want_layout) {
cgit_print_http_headers();
cgit_print_docstart();