--- Begin Message ---
Subject: |
[PATCH maintenance.git] nginx: berlin: Redirect old video URLs for each language. |
Date: |
Tue, 6 Jul 2021 08:53:04 +0200 |
Hi guix,
a week ago Luis nicely redesigned how videos are displayed on the Guix
website
<https://lists.gnu.org/archive/html/guix-patches/2021-07/msg00005.html>.
(Because the old CSS stylesheets are cached by the browser, the
website displayed videos wrongly for a day though.)
This patch adds redirects for the guix website from the old video URLs
like
/LANG/videos/everyday-use-of-gnu-guix,-part-one/index.html
/LANG/videos/everyday-use-of-gnu-guix,-part-one/
/LANG/videos/everyday-use-of-gnu-guix,-part-one
to the new
/LANG/videos/2020/everyday-use-of-gnu-guix-part-one/
but maybe the patch is too ugly because that’s code duplication to
have three added redirections for each video. Note that my old
videos page actually linked to
</LANG/videos/everyday-use-of-gnu-guix,-part-one/index.html> and not
</LANG/videos/everyday-use-of-gnu-guix,-part-one/> as usual.
Shall I push it as-is to guix/maintenance.git,
or do you think it would be better to rewrite the redirect procedure
to return a list to redirect every URL with suffixes
""
"/"
"/index.html"
and change guix.gnu.org-locations accordingly to flatten the location
list?
The patch was tested on a VM of berlin.scm with some services, file
systems and SSL removed and I’m confident it does what it should.
Regards,
Florian
nginx-berlin-Redirect-old-video-URLs-for-each-language.patch
Description: Text document
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#49431: [PATCH maintenance.git] nginx: berlin: Redirect old video URLs for each language. |
Date: |
Sat, 10 Jul 2021 21:28:32 +0200 |
On Sat, Jul 10, 2021 at 12:27:05PM +0200, Ludovic Courtès wrote:
> "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> skribis:
> > Do I need to add a copyright header? I hereby license/declare my
> > patch CC0 <https://creativecommons.org/publicdomain/zero/1.0/>.
>
> Currently there’s no explicit license on this file,
> hydra/nginx/berlin.scm.
>
> There’s very little at stake for the sake of transparency, it might be
> best to email guix-sysadmins so people who contribute to this file (and
> to hydra/berlin.scm) agree on the license. The default license in the
> project would be GPLv3+, but these config files are “special”.
I will send a mail with a patch there. Thank you.
> > Shall I push and then wait until someone guix system reconfigures
> > berlin?
>
> Yes, please!
Finally pushed as 2d6dc5e01aa32a01b345ba834e32bbf723e67077. Old video
URLs will be redirected after guix system reconfigure.
Regards,
Florian
--- End Message ---