File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -487,13 +487,22 @@ issueList.IssueView = Backbone.View.extend(
487
487
this . issues . setURLState ( "/api/issues/search" , paramsCopy ) ;
488
488
}
489
489
} else if ( _ . contains ( issuesAPICategories , category ) ) {
490
- this . issues . setURLState ( "/api/issues/category/" + category , params ) ;
490
+ this . issues . setURLState (
491
+ "/api/issues/category/" + category ,
492
+ this . removeParamQuery ( params )
493
+ ) ;
491
494
} else {
492
- this . issues . setURLState ( "/api/issues" , params ) ;
495
+ this . issues . setURLState ( "/api/issues" , this . removeParamQuery ( params ) ) ;
493
496
}
494
497
495
498
this . fetchAndRenderIssues ( ) ;
496
499
} ,
500
+ removeParamQuery : function ( params ) {
501
+ if ( params && params . q ) {
502
+ delete params . q ;
503
+ }
504
+ return params ;
505
+ } ,
497
506
addParamsToModel : function ( paramsArray ) {
498
507
// this method just puts the params in the model's params property.
499
508
// paramsArray is an array of param 'key=value' string pairs
You can’t perform that action at this time.
0 commit comments