From 080ebaffa19cc1a73a7f9751dd5edfab6eff3c29 Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Wed, 9 Mar 2022 14:48:09 -0500 Subject: [PATCH] pep 676: don't add trailing slash on redirect --- config/nginx.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/nginx.conf.erb b/config/nginx.conf.erb index 6811b7c39..5044f8283 100644 --- a/config/nginx.conf.erb +++ b/config/nginx.conf.erb @@ -269,11 +269,11 @@ http { } location ~ ^/dev/peps/?(.*)$ { - return 302 https://peps.python.org/$1/; + return 302 https://peps.python.org/$1; } location ~ ^/peps/(.*)\.html$ { - return 302 https://peps.python.org/$1/; + return 302 https://peps.python.org/$1; } location ^/(dev/)?peps(/.*)?$ {