From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 2ea9c3ab for ; Tue, 11 Dec 2018 14:50:49 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1gWo3L-0004ZD-4e; Tue, 11 Dec 2018 20:50:48 +0100 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1gWo3J-0007in-88; Tue, 11 Dec 2018 20:50:45 +0100 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1gWo3J-0006VG-3q; Tue, 11 Dec 2018 20:50:45 +0100 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id 62c55b52; Tue, 11 Dec 2018 20:50:45 +0100 (CET) Date: Tue, 11 Dec 2018 20:50:44 +0100 From: Ingo Schwarze To: Jan Stary Cc: discuss@mdocml.bsd.lv Subject: Re: man links at mandoc cvsweb Message-ID: <20181211195044.GD87344@athene.usta.de> References: <20181211062853.GA48430@www.stare.cz> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181211062853.GA48430@www.stare.cz> User-Agent: Mutt/1.8.0 (2017-02-23) Hi Jan, Jan Stary wrote on Tue, Dec 11, 2018 at 07:28:54AM +0100: > It seems that the manpage links at > http://mandoc.bsd.lv/cgi-bin/cvsweb/configure > (and presumably other pages) do not work. > > For example, the link to "getsupbopt(3)" in the last entry is > http://www.openbsd.org/cgi-bin/man.cgi?&sec=3&query=getsubopt > which presents a blank page. The reason for getting the blank page (or more precisely, the starting page) is that www.openbsd.org redirects the above URI to http://man.openbsd.org/cgi-bin/man.cgi?%26sec=3%26query=getsubopt erroneously percent-escaping the ampersand argument separators, while it should rather redirect to http://man.openbsd.org/cgi-bin/man.cgi?&sec=3&query=getsubopt which still works correctly. Rather than trying to bother the maintainer of www.openbsd.org to change the redirection, i chose to change the following two files on mandoc.bsd.lv: /var/www/cgi-bin/cvsweb # change sprintf($mancgi argument order /var/www/conf/cvsweb/cvsweb.conf # change $mancgi definition to emit the modern form https://man.openbsd.org/getsubopt.3 directly. > However, searching there for "getsubopt" in section 3 > returns the http://man.openbsd.org/getsubopt.3 manpage. > > I suppose the format of the link has changed. Wrong guess. The old link format is still supported, only the redirection appears to be broken. That said, we could consider deleting support for the old link format - both on www.openbsd.org to simplify the web server configuration and in cgi.c to simplify the mandoc source code. I guess it has been supported for long enough now... Yours, Ingo -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv