source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: for .Xr links, use short PATH_INFO style URIs
@ 2016-04-14 23:49 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2016-04-14 23:49 UTC (permalink / raw)
  To: source

Log Message:
-----------
for .Xr links, use short PATH_INFO style URIs

Modified Files:
--------------
    mdocml:
        cgi.c

Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/cgi.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -Lcgi.c -Lcgi.c -u -p -r1.121 -r1.122
--- cgi.c
+++ cgi.c
@@ -816,12 +816,8 @@ format(const struct req *req, const char
 	memset(&conf, 0, sizeof(conf));
 	conf.fragment = 1;
 	usepath = strcmp(req->q.manpath, req->p[0]);
-	mandoc_asprintf(&conf.man, "/%s?query=%%N&sec=%%S%s%s%s%s",
-	    scriptname,
-	    req->q.arch	? "&arch="       : "",
-	    req->q.arch	? req->q.arch    : "",
-	    usepath	? "&manpath="    : "",
-	    usepath	? req->q.manpath : "");
+	mandoc_asprintf(&conf.man, "/%s%s%%N.%%S",
+	    usepath ? req->q.manpath : "", usepath ? "/" : "");
 
 	mparse_result(mp, &man, NULL);
 	if (man == NULL) {
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-14 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-14 23:49 mdocml: for .Xr links, use short PATH_INFO style URIs schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).