[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#877367: Bug #877367: www.debian.org: Please consider adding redirects for old Policy chapters/appendices



Hello Laura,

I've realised that I didn't answer your request.  Let me do that now.

On Wed, Jan 03, 2018 at 02:09:30PM +0100, Laura Arjona Reina wrote:
> Sean, if you prefer that we redirect to the chapter as we are doing now,
> feel free to close this bug. If you can confirm that all the
> ch-whatever.html#oldsection can be safely redirected to #oldsection
> (suppressing the substring of chapter), I would write a new patch for
> this rule in the Apache config.

When we converted the docbook to markdown, we imported the section IDs
with a 's-' prefix.  So for example, #s-sd-1 correctly reaches the first
subsection of "Control files and their fields (from old Packaging
Manual)".

So, yes, ch-whatever.html#oldsection should redirect to #oldsection --
but there might be more conversion required.  For example #sD.1 becomes
#sd-1 and you might need to strip the s- prefix.

In short, it is complicated enough that I think it would be best to wait
until we've figured out if singlehtml is sticking around.

On Wed, Jan 03, 2018 at 04:41:48PM +0100, Laura Arjona Reina wrote:
> Not at all. We're currently shipping the single page version in the
> website, so until that is changed, these redirects being in place are a
> good thing, IMO.

Okay.  TTBBMK you should use 302 redirects, not 301, because of the
possible change back to the multi-page format.

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature


Reply to: