Skip to content

Commit 07a82bd

Browse files
quick n' dirty fix to get default store_view in default group
1 parent cf42295 commit 07a82bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Plugin/App/Request/StorePathInfoValidator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ private function resolveByWebUrl(string $uri): string
9999
if ($store->getId() && str_starts_with($uri, $store->getBaseUrl(UrlInterface::URL_TYPE_WEB))) {
100100
try {
101101
$website = $store->getWebsite();
102+
if($website->getDefaultGroup()->getDefaultStore()->getCode() === $store->getCode()){
103+
return $store->getCode();
104+
}
102105
if ($website->getIsDefault()) {
103106
if ($store->isDefault()) {
104107
return $store->getCode();

0 commit comments

Comments
 (0)