This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7643b7d
commit 7951836
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 comments
on commit 7951836
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what the long-term plan for legacy.python.org is, but I suggest that the effort is better spent into implementing /sf/ urls directly in the site, instead of redirecting to legacy (of course, in addition bugs.python.org should redirect right away to the issue).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Knowing what I know about the script that does the redirect in dinsdale, I'm inclined to completely bypass the legacy redirect, and go straight to bugs from nginx.
Actually, duh, I could do better than this and say:
return 301 http://legacy.python.org/sf$is_args$args;
since $is_args is ? if there are args, or empty if not, and args would be empty if there are none.
Also, if we're going to move the code that handles this to to the new server, should probably start 302'ing instead.
lmk and I'll fix that all up tomorrow