Skip to content

Commit

Permalink
Merge pull request #14 from experius/lewisvoncken-patch-1
Browse files Browse the repository at this point in the history
[BUGFIX] Solved invalid issue when using www in domain
  • Loading branch information
lewisvoncken authored Mar 16, 2020
2 parents 3454947 + bd8576b commit 1b35587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1b35587

Please sign in to comment.