Index: plugins/views_data_export_plugin_display_export.inc
===================================================================
--- plugins/views_data_export_plugin_display_export.inc	(revision 1837)
+++ plugins/views_data_export_plugin_display_export.inc	(working copy)
@@ -62,6 +62,7 @@
   function option_definition() {
     $options = parent::option_definition();
     $options['use_batch'] = array('default' => $this->is_compatible());
+    $options['return_path']  = array('default' => '');
     $options['items_per_page'] = array('default' => '0');
     $options['style_plugin']['default'] = 'views_data_export_csv';
 
@@ -113,6 +114,13 @@
             FALSE => t('Export data all in one segment. Possible time and memory limit issues.'),
           ),
         );
+        $form['return_path'] = array(
+          '#title' => t('Return path'),
+          '#type' => 'textfield',
+          '#description' => t('Return path after the batched operation, leave empty for default.'),
+          '#default_value' => $this->get_option('return_path'),
+          '#dependency' => array('radio:use_batch' => array(TRUE)),
+        );
         if (!$this->is_compatible()) {
           $form['use_batch']['#disabled'] = TRUE;
           $form['use_batch']['#default_value'] = 0;
@@ -135,6 +143,7 @@
     switch ($form_state['section']) {
       case 'use_batch':
         $this->set_option('use_batch', $form_state['values']['use_batch']);
+        $this->set_option('return_path', $form_state['values']['return_path']);
         break;
     }
   }
@@ -259,6 +268,10 @@
       // Get the path of the attached display:
       $querystring['return-url'] = $this->view->display[$_GET['attach']]->handler->get_path();
     }
+    else {
+      $return_path = $this->get_option('return_path');
+      $querystring['return-url'] = isset($return_path) ? $return_path : NULL;
+    }
 
     //Set the batch off
     $batch = array(
