I have a form app A which needs a variable [x] set to work. So in onAppInit I have this conditional redirect snippet:
// Redirection parameters
$redir_app = ‘app_B’; // Application name
$redir_test = [x] == ‘’; // Redirection test
$redir_target = ‘_self’; // Target window (_blank, _self, _parent or modal)
$redir_param = ‘app_A’;
// Redirection
if ($redir_test)
{
sc_redir($redir_app, $redir_param, $redir_target);
}
The intention is to redirect to app B automatically where the [x] will be set. In app B’s onValidateSuccess, I have
sc_redir([redir_param]); to return back to app A.
When I run the app, it goes to app B as it should but in the attempt to go back to app A I get the following error all the time:
The requested URL /sc8/app/myapp//.php was not found on this server.
I have tried putting putting the full path within $redir_param and also adding .php to the name but these make no difference.
How can I solve this?