GNU bug report logs -
#49431
[PATCH maintenance.git] nginx: berlin: Redirect old video URLs for each language.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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 (text/plain, attachment)]
This bug report was last modified 3 years and 316 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.