Alter ctools_ajax_command_redirect()
You could use hook_form_alter and unset the $form['#submit']. Then you add your own submit handler by using $form['#submit'][] = '_my_callback'; THen in your callback just copy the code of the Ajax redirect and alter it to your needs.