File tree 1 file changed +3
-2
lines changed
webcompat/static/js/lib/models
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ issueList.Issue = issues.Issue.extend({});
120
120
121
121
issueList . IssueCollection = Backbone . Collection . extend ( {
122
122
model : issueList . Issue ,
123
- url : '/api/issues?page=1' ,
123
+ // TODO(miket): less hard-coding of default params
124
+ url : '/api/issues?page=1&per_page=50' ,
124
125
parse : function ( response , jqXHR ) {
125
126
if ( jqXHR . xhr . getResponseHeader ( 'Link' ) != null ) {
126
127
//external code can access the parsed header via this.linkHeader
@@ -168,7 +169,7 @@ issueList.IssueCollection = Backbone.Collection.extend({
168
169
}
169
170
var page ;
170
171
// we only return the page number
171
- var re = new RegExp ( 'page=(\\d)' ) ;
172
+ var re = new RegExp ( '[&?] page=(\\d)' ) ;
172
173
173
174
if ( page = ( this . linkHeader . hasOwnProperty ( relation ) &&
174
175
this . linkHeader [ relation ] . match ( re ) ) ) {
You can’t perform that action at this time.
0 commit comments