Skip to content

Commit 0c3b10f

Browse files
committed
Issue webcompat#1120 - Added return statement for \'new\' issue category and prepend api. to the method inside url_for
1 parent b6c9a63 commit 0c3b10f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webcompat/api/endpoints.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def get_issue_category(issue_category):
130130
# For paginated results on the /issues page,
131131
# see /issues/search/needstriage.
132132
elif issue_category == 'new':
133-
redirect(url_for('.get_issue_category',
133+
return redirect(url_for('api.get_issue_category',
134134
issue_category='needstriage'), 301)
135135
else:
136136
# The path doesn’t exist. 404 Not Found.
@@ -192,7 +192,7 @@ def get_category_from_search(issue_category):
192192
query_string += ' state:closed '
193193
return get_search_results(query_string, params)
194194
elif issue_category == 'new':
195-
redirect(url_for('.get_category_from_search',
195+
return redirect(url_for('api.get_category_from_search',
196196
issue_category='needstriage'), 301)
197197
else:
198198
# no known keyword we send not found

0 commit comments

Comments
 (0)