diff --git a/Plugin/Magento/Store/App/Request/StorePathInfoValidator.php b/Plugin/Magento/Store/App/Request/StorePathInfoValidator.php index 31b24ec..756d5a8 100644 --- a/Plugin/Magento/Store/App/Request/StorePathInfoValidator.php +++ b/Plugin/Magento/Store/App/Request/StorePathInfoValidator.php @@ -115,7 +115,7 @@ public function afterGetValidStoreCode( $response = $this->responseFactory->create(); $response->setRedirect($request->getDistroBaseUrl() . $requestUri, 301); $response->sendResponse(); - exit; + return ''; // This should never be reached because of the function above. } $storeCode = "{$websiteCode}_{$pathParts[0]}";