We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbfdec2 commit 3dd984bCopy full SHA for 3dd984b
ViewModel/LinkResolver.php
@@ -281,6 +281,14 @@ private function getLanguageStoreIds(): array
281
$languageStoreIds[$languageCode] = $languageStoreIds[$languageCode] ?? +$store->getId();
282
}
283
284
+ /**
285
+ * If locale fallback is enabled, make sure those requests will be directed to this store
286
+ */
287
+ $currentStore = $this->storeManager->getStore();
288
+ if ($this->configuration->hasContentLanguageFallback($this->storeManager->getStore())) {
289
+ $languageStoreIds[$this->configuration->getContentLanguageFallback($currentStore)] = +$currentStore->getId();
290
+ }
291
+
292
$this->cachedLanguageStoreIds = $languageStoreIds;
293
return $languageStoreIds;
294
0 commit comments