[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49431] [PATCH maintenance.git] nginx: berlin: Redirect old video UR
From: |
pelzflorian (Florian Pelz) |
Subject: |
[bug#49431] [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
- [bug#49431] [PATCH maintenance.git] nginx: berlin: Redirect old video URLs for each language.,
pelzflorian (Florian Pelz) <=