diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module
index abfb96b..1758430 100644
--- a/core/modules/responsive_image/responsive_image.module
+++ b/core/modules/responsive_image/responsive_image.module
@@ -535,9 +535,9 @@ function _responsive_image_image_style_url($style_name, $path) {
   }
   $entity = ImageStyle::load($style_name);
   if ($entity instanceof ImageStyle) {
-    return file_url_transform_relative($entity->buildUrl($path));
+    return $entity->buildUrl($path);
   }
-  return file_url_transform_relative(file_create_url($path));
+  return file_create_url($path);
 }
 
 /**
diff --git a/core/modules/responsive_image/tests/src/Kernel/ResponsiveImageAbsolutePathTest.php b/core/modules/responsive_image/tests/src/Kernel/ResponsiveImageAbsolutePathTest.php
new file mode 100644
index 0000000..abe49fe
--- /dev/null
+++ b/core/modules/responsive_image/tests/src/Kernel/ResponsiveImageAbsolutePathTest.php
@@ -0,0 +1,64 @@
+<?php
+
+namespace Drupal\Tests\responsive_image\Kernel;
+
+use Drupal\field\Entity\FieldConfig;
+use Drupal\field\Entity\FieldStorageConfig;
+use Drupal\KernelTests\KernelTestBase;
+use Drupal\responsive_image\Entity\ResponsiveImageStyle;
+use Drupal\Tests\node\Traits\ContentTypeCreationTrait;
+use Drupal\Tests\node\Traits\NodeCreationTrait;
+use Drupal\user\Entity\Role;
+
+/**
+ * Check if the responsive image paths are absolute.
+ *
+ * @group responsive_image
+ */
+class GraphQLFileTestBase extends KernelTestBase {
+  use NodeCreationTrait;
+  use ContentTypeCreationTrait;
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = [
+    'system',
+    'user',
+    'file',
+    'image',
+    'breakpoint',
+    'responsive_image',
+  ];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    $this->installConfig('system');
+    $this->installConfig('user');
+    $this->installEntitySchema('user');
+    $this->installConfig('image');
+
+    $responsiveImgStyle = ResponsiveImageStyle::create(array(
+      'id' => 'responsive_image_style',
+      'label' => 'Responsive image style test',
+      'breakpoint_group' => 'responsive_image',
+    ));
+    $responsiveImgStyle->addImageStyleMapping('responsive_image.mobile', '1x', array(
+      'image_mapping_type' => 'image_style',
+      'image_mapping' => 'thumbnail',
+    ));
+    $responsiveImgStyle->save();
+  }
+
+  /**
+   * Test a simple file field.
+   */
+  public function testImageField() {
+    $url = _responsive_image_image_style_url('responsive_image_style', 'sites/default/files/image.png');
+    $this->assertStringStartsWith('http', $url, 'Responsive images\' urls are absolute.');
+  }
+
+}
