title: How do I remove these custom query parameters from my RESTANGULAR HTTP Request?
body: <p>I'm trying to remove custom parameters from the following HTTP request on my REST API:</p>
  
  <p>I want to turn
  <a href="http://localhost:3000/users?_page=1&amp;_perPage=30&amp;_sortDir=DESC&amp;_sortField=id" rel="nofollow">http://localhost:3000/users?_page=1&amp;_perPage=30&amp;_sortDir=DESC&amp;_sortField=id</a></p>
  
  <p>into <a href="http://localhost:3000/users" rel="nofollow">http://localhost:3000/users</a></p>
  
  <p>I am using ng-admin, which is an AngularJS admin panel, they provide a page on changing query parameters here: <a href="https://github.com/marmelab/ng-admin/blob/master/doc/API-mapping.md" rel="nofollow">https://github.com/marmelab/ng-admin/blob/master/doc/API-mapping.md</a></p>
  
  <p>I have used some of their code and tried to use the following code to implement what I'm trying to do but it won't work.</p>
  
  <pre><code>myApp.config(['RestangularProvider', function(RestangularProvider) {
  RestangularProvider.addFullRequestInterceptor(function(element, operation, what, url, headers, params, httpConfig) {
      if (operation == 'getList' &amp;&amp; what == 'entityName') {
          delete params._page;
          delete params._perPage;
          delete params._sortField; 
          delete params._sortDir; 
      }
      console.log({ params: params });
  });
  }]);
  </code></pre>
  
  <p>Finally, how can I check the actual HTTP request that is sent through once the interceptors have been utilised, chrome developer tools seems to only display the original request with all parameters even though I've implemented the above methods. I think this is because the interceptor works after the browser implements the request.</p>