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';
