title: Restangular no BaseUrl when do PUT
body: <p>i'm using Restangular and trying to PUT some data but it seems to lose the BaseUrl.
  In the config function i define the BaseUrl for Restangular and others Restangular fields.</p>
  
  <p>Constants.restangularBaseUrl is <a href="http://192.168.1.100/api/" rel="nofollow">http://192.168.1.100/api/</a></p>
  
  <pre><code>RestangularProvider.setBaseUrl(Constants.restangularBaseUrl)
      .setRestangularFields({
      selfLink: '_links.self.href',
          id: '_id',
          etag: '_etag'
      })
      .addResponseInterceptor(function(data, operation, what, url, response, deferred){
          if (operation === 'getList') {
              var result = data._items;
              result._meta = data._meta;
              result._links = data._links;
              return result;
          }
          return data;
      });
  </code></pre>
  
  <p>Then i have some models like this:</p>
  
  <pre><code>(function(){
      angular.module('models.ebayItems', ['services.constants', 'restangular'])
      .service('EbayItems', ['Constants', 'Restangular', function (Constants, Restangular) {
          Restangular.extendModel('ebayitems', function(model) {
              model.toggleMonitor = function(){
                  var item = this;
                  Restangular.one('ebayitems', this._id).patch({active: this.active}, '', {'If-Match': this._etag})
                  .then(function(data){
                      item._etag = data._etag;
                  }, function(error){
                      console.log('error', error);
                  });
              };
              return model;
          });
  
          var ebayItems = Restangular.all('ebayitems');
  
          var ebayItemsOneSearch = function(_id){
              return ebayItems.customGETLIST('', {where: {searchId: _id}});   
          };
  
          return {
              items: ebayItems,
              oneSearch: ebayItemsOneSearch
          };
  
      }])
  })();
  </code></pre>
  
  <p>Now when i try to do a put request with an item based on that model:</p>
  
  <pre><code>item.put()
  </code></pre>
  
  <p>it uses the wrong url, i mean it loses the BaseUrl, so instead of putting at:</p>
  
  <pre><code>http://192.168.1.100/api/ebayitems/12345
  </code></pre>
  
  <p>it puts at</p>
  
  <pre><code>http://192.168.1.100/ebayitems/12345
  </code></pre>
  
  <p>resulting in a 404 error.</p>
  
  <p>Why?
  What am i doing wrong?
  Any help really appreciated.
  Thank you</p>