From bd8576b2493691bcb8b85520cf971d3c80ca96d1 Mon Sep 17 00:00:00 2001 From: "Mr. Lewis" Date: Mon, 16 Mar 2020 13:44:56 +0100 Subject: [PATCH] [BUGFIX] Solved invalid issue when using www in domain When the domain in the config contains www the query which is used has a like query with %%example.com which is an invalid query. --- Helper/Data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/Data.php b/Helper/Data.php index 2369b58..7bc7429 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -97,7 +97,7 @@ public function validateStore($storeCode) */ public function getRequestToWebsiteId($request) { - $baseUrl = str_replace('www.', '%', $request->getDistroBaseUrl()); + $baseUrl = str_replace('www.', '', $request->getDistroBaseUrl()); // Strip schemas $baseUrl = str_replace(['https://', 'http://'], '', $baseUrl);