diff --git a/salt/docs/config/nginx.docs-backend.conf b/salt/docs/config/nginx.docs-backend.conf index f0369de9..49a91ed0 100644 --- a/salt/docs/config/nginx.docs-backend.conf +++ b/salt/docs/config/nginx.docs-backend.conf @@ -21,6 +21,11 @@ server { return 302 $scheme://$host/3/; } + # Python 3 docs are the default at the root of each translations. + location ~ ^/(fr)/$ { + return 302 $scheme://$host/$1/3/; + } + # Some doc download pages link to docs.python.org/ftp instead of www.python.org/ftp. location /ftp/ { return 301 https://www.python.org$request_uri;