fixed issue where using "../some/api" as the model.url was broken, in that the generateUrl function would add a parent "/" to the relative url which caused it not to be relative anymore.