Fix bug with create relative url from domain and path