diff --git a/core/lib/Drupal/Core/EventSubscriber/HtmlSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/HtmlSubscriber.php
index 0248cc3ce764523729f2652bf186af859b09d5e8..ecb0c08dff47b01709183ce979b77c4f001c21a0 100644
--- a/core/lib/Drupal/Core/EventSubscriber/HtmlSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/HtmlSubscriber.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\Core\EventSubscriber;
 
+use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\HttpKernel\KernelEvents;
 use Symfony\Component\HttpKernel\Event\GetResponseEvent;
@@ -74,7 +75,7 @@ public function onNotFoundHttpException(GetResponseEvent $event) {
       if ($path && $path != $system_path) {
         // @TODO: Um, how do I specify an override URL again? Totally not clear.
         // Do that and sub-call the kernel rather than using meah().
-        $request = $event->getRequest()->duplicate();
+        $request = Request::create($path);
 
         $kernel = new DrupalKernel();
         $response = $kernel->handle($request, DrupalKernel::SUB_REQUEST);