Fixed resolveUrl to check for host
built