there's a module N/redirect you could take a look ...
# suitescript
c
there's a module N/redirect you could take a look at