Use resource uri for forming url