mirror of
https://git.zx2c4.com/cgit
synced 2025-08-28 13:48:14 +02:00
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:
parent
13c2d3df04
commit
d7034806a4
5 changed files with 26 additions and 2 deletions
3
cgit.c
3
cgit.c
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue