From: Paul Hänsch Date: Sun, 30 Jul 2023 10:15:34 +0000 (+0200) Subject: handle accidental double language links X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=dc2bbd33218780a35186e8258da125a55fb5cf1c;p=shellwiki handle accidental double language links --- 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