I would strongly recommend using relative paths if...
# suitescript
s
I would strongly recommend using relative paths if at all possible e.g. '//blah/blah/blah'? - also depending on where this code is running you may have url parsing functions available