Skip to content

Commit

Permalink
Fix redirection of SF bugs (#2110)
Browse files Browse the repository at this point in the history
* Fix redirection of SF bugs

* remove extraneous directive

Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
  • Loading branch information
serhiy-storchaka and ewdurbin committed Aug 9, 2022
1 parent 0197bd5 commit 6bd101d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions config/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,8 @@ http {
return 302 https://peps.python.org/;
}

location ~ ^/sf(.*)$ {
if ($is_args != "") {
return 302 http://legacy.python.org/sf?$args;
}
return 302 http://legacy.python.org/sf$1;
location ~ ^/sf/(.*)$ {
return 302 https://bugs.python.org/issue$1;
}

location /news/ {
Expand Down

0 comments on commit 6bd101d

Please sign in to comment.