Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Issue #1120 - Added return statement for 'new' issue category and pre…
…pend api. to the method inside url_for
  • Loading branch information
deepthivenkat committed Jul 14, 2016
commit 5dd4e218633a39beb0b5756fee9c141108cbc74c
4 changes: 2 additions & 2 deletions webcompat/api/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_issue_category(issue_category):
# For paginated results on the /issues page,
# see /issues/search/needstriage.
elif issue_category == 'new':
redirect(url_for('.get_issue_category',
return redirect(url_for('api.get_issue_category',
issue_category='needstriage'), 301)

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

else:
# The path doesn’t exist. 404 Not Found.
Expand Down Expand Up @@ -192,7 +192,7 @@ def get_category_from_search(issue_category):
query_string += ' state:closed '
return get_search_results(query_string, params)
elif issue_category == 'new':
redirect(url_for('.get_category_from_search',
return redirect(url_for('api.get_category_from_search',
issue_category='needstriage'), 301)
else:
# no known keyword we send not found
Expand Down