title: pass parameters to backbone fetch url to deal with a non-standard api
body: <p>I am trying to manipulate backbone's fetch method to to deal with a bit of a non-standard api. The way the api works is as follows:</p>
  
  <pre><code>api/products/[page]?param1=val&amp;param2=val
  </code></pre>
  
  <p>ex:</p>
  
  <pre><code>api/products/2?budget=low&amp;categories=all
  </code></pre>
  
  <p>would be equivalent to getting the second page of results for which the budget is low and all categories are included.</p>
  
  <p>I can pass the parameters after the query string just fine through the format:</p>
  
  <pre><code>self.productsItemsCollection.fetch({ success : onDataHandler, dataType: "json", data: { budget: 'low', categories: 'all' } });
  </code></pre>
  
  <p>but I'm not sure what to do about the pagination, since it comes before the ? question mark. </p>
  
  <p>Here is how the collection is set up:</p>
  
  <pre><code>define([
    'underscore',
    'backbone',
    'models/products/ProductsItemsModel'
  ], function(_, Backbone, ProductsItemsModel){
  
    var ProductsItemsCollection = Backbone.Collection.extend({
  
        model: ProductsItemsModel,
  
        initialize : function(models, options) {}, //MH - need to pass filters to this function
  
        url : function() {
          return '/api/products/'; //MH - need to pass page number to be appended to this url
        },
  
        parse : function(data) {
          debugger;
          return data.items;
        }
  
    });
  
    return ProductsItemsCollection;
  
  });
  </code></pre>
  
  <p>How do I include the pagination in backbone's fetch command given this api URL structure?</p>