Improve url support. Fixed to use more complex urls like ex.: rootdomain.com/api/rest/