From dc2bbd33218780a35186e8258da125a55fb5cf1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 30 Jul 2023 12:15:34 +0200 Subject: [PATCH] handle accidental double language links --- handlers/10_translations.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handlers/10_translations.sh b/handlers/10_translations.sh index 4b34640..e93b465 100755 --- a/handlers/10_translations.sh +++ b/handlers/10_translations.sh @@ -29,6 +29,10 @@ case ${PATH_INFO} in ;; */:?*/\[*\]) :;; # Default handler, considered valid in most cases + */:?*/:?*) + # Accidental double language link, last one stays valid! + REDIRECT "${_BASE}${PATH_INFO%/:?*/:?*}/:${PATH_INFO##*/:}" + ;; */:?*/?*) :;; # Default attachment handler */:?*/) # Faulty URL build -- 2.39.2