You may need the fully qualified internal url, so ...
# suitescript
e
You may need the fully qualified internal url, so
url.resolveDomain
i think