Bug#877367: Bug #877367: www.debian.org: Please consider adding redirects for old Policy chapters/appendices
Sean Whitton <[email protected]>
| Newsgroups | gmane.linux.debian.devel.www |
|---|---|
| Message-ID | <20180115005730.GA4405__28720.3455380679$1515977904$gmane$org@iris.silentflame.com> |
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
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAlpb/HIACgkQaVt65L8G YkAU5w/+Ok59CFJKuuZqB4EFVsP9xDlxB/ib1NW8XKfrf8QWYjFH5gXOsLCBVExU +Aiq00Q/7yhut1s1HRiHnJfthNKGFJ4GaOU+RypDrhzH34IR/xjlie9FZ8F1rYKF w7eE4GGHbH/cdwJFFNpPDOd/1cI3esjOkmQsUtHQh22DU7N7JztPr1lNw1oHcJL1 PLhEvhh1LzZODSC7S2y5eTTSW9vmb6pGb2aCdIA1EYop0E/aDes8a+j/ehkFDCIA 4T4VqdgoE84aIEV4OMWIQNAsONJ2DqAtwA+tQXF59aSuE4LwsfE7rlK80n5wu4oJ Ax2T+ognjK2su8qr2L34IMuC6LT5DCtk2FRyruBmQW+SXow1EGBQFuvFv50u+Ig9 uxZDrWkU8KGIY5oBWq/trUFRlIoCzR00TsCX/P1ZGVe57RZwrDaPu3FmsKkS2Nve x0pS2wI6vsSckudKU/CCfAejwSLGEcwF88D7duRmj1k7hJCnMule3maizwr8E3R+ wa4WB5Sux7oCa4t1Zbbeah2jWTUcVYzVd+s7N9myMBF5L9WFtaiBFQCXibZsBFwP dFqIqtn99Px2zENqlJaVXB8OQAXFeZ55QHqTXcbWoHoglsKGrtLqmLgNQIMVUq9O yw9Hx7U6jgutkOiB7Hs4fJDd6USpknglfHqTbGGNUHit4u95Az0= =+fES -----END PGP SIGNATURE-----