Skip to content

Commit

Permalink
Correctly select the x-fallback root page
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Aug 17, 2021
1 parent 0386d76 commit a1da15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrontendModule/ChangeLanguageModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function compile(): void
if ($item->isDirectFallback() && !$headerLinks->has($item->getLanguageTag())) {
$headerLinks->addFromNavigationItem($item, $urlParameters);

if ($item->getRootPage()->fallback) {
if ($item->getRootPage()->fallback && !$item->getRootPage()->languageRoot) {
$headerLinks->setDefault($item->getHref($urlParameters), $item->getTitle());
}
}
Expand Down

0 comments on commit a1da15a

Please sign in to comment.