I've got a form that starts a batch job. What's the right way to redirect them after it finishes? Calling drupal_goto() in my finish function?
You can set 'redirect' in hook_batch_alter(). For example:
$batch['form_state']['redirect']['path'] = 'cart';
If you know the redirect path in the moment you start the batch, you can