From: "Ludovic Courtès" <ludo@gnu.org>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: 49431@debbugs.gnu.org, Luis Felipe <luis.felipe.la@protonmail.com>
Subject: [bug#49431] [PATCH maintenance.git] nginx: berlin: Redirect old video URLs for each language.
Date: Thu, 08 Jul 2021 15:53:16 +0200 [thread overview]
Message-ID: <87a6mwlxo3.fsf@gnu.org> (raw)
In-Reply-To: <20210706065304.6kqbwqlcf6calkh7@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Tue, 6 Jul 2021 08:53:04 +0200")
Hi,
"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> skribis:
> 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/
[...]
>>From d52a189332aa014f9da88fa1ce1e38ffc107fa3b Mon Sep 17 00:00:00 2001
> From: Florian Pelz <pelzflorian@pelzflorian.de>
> Date: Sun, 4 Jul 2021 14:46:39 +0200
> Subject: [PATCH] nginx: berlin: Redirect old video URLs for each language.
>
> * hydra/nginx/berlin.scm (languages-to-accept): New list. Move here
> the languages list from ...
> (%extra-content) ... here. Use languages from 'languages-to-accept'.
> (guix.gnu.org-redirect-locations-for-lang): New procedure. Add
> new video redirections.
> (guix.gnu.org-redirect-locations): New list. Move here the
> old redirections. Update old video redirections.
> (guix.gnu.org-other-locations): New list. Move here the other nginx
> locations from ...
> (guix.gnu.org-locations): ... here. Reimplement in terms of the above.
[...]
> (redirect "/screenshots/xfce" "/$lang/screenshots/xfce/")
> (redirect "/security" "/$lang/security/")
> (redirect "/videos" "/$lang/videos/")
> - (redirect "/videos/asking-for-help" "/$lang/videos/asking-for-help/")
> - (redirect "/videos/everyday-use-of-gnu-guix,-part-one" "/$lang/videos/everyday-use-of-gnu-guix,-part-one/")
> - (redirect "/videos/everyday-use-of-gnu-guix,-part-two" "/$lang/videos/everyday-use-of-gnu-guix,-part-two/")
> - (redirect "/videos/installation-from-script" "/$lang/videos/installation-from-script/")
> - (redirect "/videos/packaging,-part-one" "/$lang/videos/packaging,-part-one/")
> - (redirect "/videos/packaging,-part-two" "/$lang/videos/packaging,-part-two/")
> - (redirect "/videos/packaging,-part-three" "/$lang/videos/packaging,-part-three/")
> -
> + (redirect "/videos/asking-for-help" "/$lang/videos/2020/asking-for-help/")
> + (redirect "/videos/everyday-use-of-gnu-guix,-part-one" "/$lang/videos/2020/everyday-use-of-gnu-guix-part-one/")
> + (redirect "/videos/everyday-use-of-gnu-guix,-part-two" "/$lang/videos/2020/everyday-use-of-gnu-guix-part-two/")
> + (redirect "/videos/installation-from-script" "/$lang/videos/2020/installation-from-script/")
> + (redirect "/videos/packaging,-part-one" "/$lang/videos/2020/packaging-part-one/")
> + (redirect "/videos/packaging,-part-two" "/$lang/videos/2020/packaging-part-two/")
> + (redirect "/videos/packaging,-part-three" "/$lang/videos/2020/packaging-part-three/")))
Shouldn’t we also redirect
/$lang/videos/everyday-use-of-gnu-guix,-part-one/ -> /$lang/videos/2020/everyday-use-of-gnu-guix-part-one/
since the left-hand side here was the right-hand side of the previous
redirects?
Anyway, at first sight it LGTM!
Thanks,
Ludo’.
next prev parent reply other threads:[~2021-07-08 13:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-06 6:53 [bug#49431] [PATCH maintenance.git] nginx: berlin: Redirect old video URLs for each language pelzflorian (Florian Pelz)
2021-07-07 17:51 ` Luis Felipe via Guix-patches via
2021-07-08 13:53 ` Ludovic Courtès [this message]
2021-07-09 7:15 ` pelzflorian (Florian Pelz)
2021-07-09 19:38 ` pelzflorian (Florian Pelz)
2021-07-10 13:41 ` Ludovic Courtès
2021-07-10 10:27 ` Ludovic Courtès
2021-07-10 19:28 ` bug#49431: " pelzflorian (Florian Pelz)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6mwlxo3.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=49431@debbugs.gnu.org \
--cc=luis.felipe.la@protonmail.com \
--cc=pelzflorian@pelzflorian.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.