From d7034806a4b1279f62d606501f831dcad31798e6 Mon Sep 17 00:00:00 2001 From: Jason A. Donenfeld Date: Wed, 12 Aug 2015 14:50:09 +0200 Subject: 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 --- cgit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index ed02614..baad1c8 100644 --- a/cgit.c +++ b/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(); -- cgit v1.2.3-70-g09d2