discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Ingo Schwarze <schwarze@usta.de>
To: Jan Stary <hans@stare.cz>
Cc: discuss@mdocml.bsd.lv
Subject: Re: man links at mandoc cvsweb
Date: Tue, 11 Dec 2018 20:50:44 +0100	[thread overview]
Message-ID: <20181211195044.GD87344@athene.usta.de> (raw)
In-Reply-To: <20181211062853.GA48430@www.stare.cz>

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

      reply	other threads:[~2018-12-11 19:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-11  6:28 Jan Stary
2018-12-11 19:50 ` Ingo Schwarze [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181211195044.GD87344@athene.usta.de \
    --to=schwarze@usta.de \
    --cc=discuss@mandoc.bsd.lv \
    --cc=discuss@mdocml.bsd.lv \
    --cc=hans@stare.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).