File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments