Monkey patch for custom base url