-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1120 - Add status code 301 and redirect url for /issues/catego… #1130
Fixes #1120 - Add status code 301 and redirect url for /issues/catego… #1130
Conversation
6639edc
to
9e5fd0e
Compare
@@ -128,7 +130,7 @@ def get_issue_category(issue_category): | |||
# For paginated results on the /issues page, | |||
# see /issues/search/needstriage. | |||
elif issue_category == 'new': | |||
abort(301) | |||
redirect(url_for('.get_issue_category', issue_category='needstriage'), 301) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
9e5fd0e
to
b6c9a63
Compare
…es/category/new to /issues/category/needstriage, /issues/search/new to /issues/search/needtriage
@deepthivenkat was there a question here? GitHub sent me a notification from a commit, but when I click on it it says "We went looking everywhere, but couldn’t find those commits." |
@@ -128,7 +130,8 @@ def get_issue_category(issue_category): | |||
# For paginated results on the /issues page, | |||
# see /issues/search/needstriage. | |||
elif issue_category == 'new': | |||
abort(301) | |||
redirect(url_for('.get_issue_category', | |||
issue_category='needstriage'), 301) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
0c3b10f
to
5dd4e21
Compare
…y and prepend api. to the method inside url_for
r+ (review request here: #1120 (comment)) |
…ry/new to /issues/category/needstriage, /issues/search/new to /issues/search/needtriage