Modules
Objects/Functions
SuiteScript 2.0
{redirect}.redirect({url: {string*},parameters: {Object}})
N/redirect Module
redirect.redirect()
Method Description:
Method used to set the redirect to the URL of a Suitelet that is available externally (Suitelets set to Available Without Login on the Script Deployment page).
Returns:
Void
Supported Script Types:
Suitelets, beforeLoad user events, and synchronous afterSubmit user events
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/redirect Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=redirect.redirect(options)
Example:
// Code Example 1
//Add additional code
//...
redirect.redirect({
url: '/app/site/hosting/scriplet.nl?script=130&deploy=1',
parameters: {'custparam_test':'helloWorld'}
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4424988767.html