diff --git a/src/Plugin/views/display/DataExport.php b/src/Plugin/views/display/DataExport.php
index d6a02b4a0..efd3f075c 100644
--- a/src/Plugin/views/display/DataExport.php
+++ b/src/Plugin/views/display/DataExport.php
@@ -894,6 +894,7 @@ public static function finishBatch($success, array $results, array $operations)
         // Permissions for accessing this URL will be inherited from the View
         // display's configuration.
         $url = file_create_url($results['vde_file']);
+        $url = file_url_transform_relative($url);
         $message = t('Export complete. Download the file <a download href=":download_url"  data-download-enabled="false" id="vde-automatic-download">here</a>.', [':download_url' => $url]);
         // If the user specified instant download than redirect to the file.
         if ($results['automatic_download']) {
diff --git a/src/Plugin/views/style/DataExport.php b/src/Plugin/views/style/DataExport.php
index 039531138..8e6fdbb53 100644
--- a/src/Plugin/views/style/DataExport.php
+++ b/src/Plugin/views/style/DataExport.php
@@ -248,7 +248,7 @@ public function attachTo(array &$build, $display_id, Url $url, $title) {
     if ($pager = $this->view->getPager()) {
       $url_options['query']['page'] = $pager->getCurrentPage();
     }
-    $url_options['absolute'] = TRUE;
+    $url_options['absolute'] = FALSE;
     if (!empty($this->options['formats'])) {
       $url_options['query']['_format'] = reset($this->options['formats']);
     }
