I want to redirect to an external URL from enonic service. I can redirect to my app page using the below code. Is there any way to redirect to external URL from return value
exports.get = function (req) {
//other codes
let res = {redirect: portal.url({path:./page’})};
return res;
}