fix domain to url transform