=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.77 retrieving revision 1.78 diff -u -p -r1.77 -r1.78 --- mandoc/cgi.c 2014/07/19 13:15:11 1.77 +++ mandoc/cgi.c 2014/07/21 15:45:17 1.78 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.77 2014/07/19 13:15:11 schwarze Exp $ */ +/* $Id: cgi.c,v 1.78 2014/07/21 15:45:17 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze @@ -564,8 +564,8 @@ pg_searchres(const struct req *req, struct manpage *r, * without any delay. */ printf("Status: 303 See Other\r\n"); - printf("Location: %s/%s/%s?", - scriptname, req->q.manpath, r[0].file); + printf("Location: http://%s%s/%s/%s?", + HTTP_HOST, scriptname, req->q.manpath, r[0].file); http_printquery(req); printf("\r\n" "Content-Type: text/html; charset=utf-8\r\n"