diff --git a/core/modules/simpletest/src/Tests/RequestCreationTest.php b/core/modules/simpletest/src/Tests/RequestCreationTest.php
new file mode 100644
index 0000000..293f20c
--- /dev/null
+++ b/core/modules/simpletest/src/Tests/RequestCreationTest.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\simpletest\Tests\BrowserTest.
+ */
+
+namespace Drupal\simpletest\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Tests the requests created by the WebTestBase.
+ *
+ * @group simpletest
+ */
+class RequestCreationTest extends WebTestBase {
+
+  public static $modules = ['dblog'];
+
+
+
+  /**
+   * Tests the requests created by the WebTestBase when using a logger.
+   */
+  protected function testLoggerRequestCreation() {
+    global $base_url;
+
+    \Drupal::logger('Simpletest')->alert('Test message.');
+    $user = $this->drupalCreateUser(['access site reports']);
+    $this->drupalLogin($user);
+    $this->drupalGet('/admin/reports/dblog');
+    $this->clickLink('Test message.');
+    $this->assertText($base_url . '/user');
+  }
+
+}
diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index cc3b270..953aa21 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -2851,7 +2851,7 @@ protected function prepareRequestForGenerator($clean_urls = TRUE, $override_serv
       $base_path = $request->getBasePath();
     }
     if ($clean_urls) {
-      $request_path = $base_path ? $base_path . '/user' : 'user';
+      $request_path = $base_path . '/user';
     }
     else {
       $request_path = $base_path ? $base_path . '/index.php/user' : '/index.php/user';
