title: Why is RestKit doubling my base url?
body: <p>I'm having a little trouble with RestKit.</p>
  
  <p>First I tried to use just RKClient:</p>
  
  <pre><code>[RKClient clientWithBaseURL:[defaults stringForKey:@"myURL"]];
  </code></pre>
  
  <p>But I was getting errors thrown by <code>NSManagedObject+ActiveRecord.m</code> (similar to <a href="https://stackoverflow.com/questions/9278156/restkit-multiple-rkobjectmanagers-object-mapping">this</a>). So I ended up creating a RKObjectManager (though I don't plan on using it):</p>
  
  <pre><code>RKObjectManager* manager = [RKObjectManager objectManagerWithBaseURL:[defaults stringForKey:@"orangeqcURL"]];
  manager.objectStore = [RKManagedObjectStore objectStoreWithStoreFilename:@"OrangeQC.sqlite"];
  [RKObjectManager setSharedManager:manager];
  </code></pre>
  
  <p>But I'm not able to get a basic call to work:</p>
  
  <pre><code>[RKClient sharedClient].username = self.login;
  [RKClient sharedClient].password = self.password;
  [[RKClient sharedClient] get:@"/users" delegate:self];
  </code></pre>
  
  <p>It give me a url error with two urls:</p>
  
  <pre><code>Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo=0x825f2e0 {NSErrorFailingURLStringKey=//mydomain.com/mydomain.com/users, NSErrorFailingURLKey=//mydomain.com/mydomain.com/users, NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x8204230 "unsupported URL"}
  </code></pre>
  
  <p>Any idea why it would double it?</p>
  
  <p>When I print out the base url it looks right:</p>
  
  <pre><code>NSLog(@"rkclient url: %@",[[RKClient sharedClient] baseURL]);
  &gt; rkclient url: mydomain.com/
  </code></pre>
  
  <p>Any help would be appreciated. Thank you.</p>