I have tried to open new tab using given domain.
Here is tried code:
var orderDet = "https://<%= oauth_iparams.domain %>/_cpanel/order/vieworder?id=123"; window.open(orderDet, '_blank');
Error in browser:
Failed to execute 'open' on 'Window': Unable to open a window with invalid URL 'https://%3C%25%3D%20oauth_iparams.domain%20%25%3E/_cpanel/order/vieworder?id=123'