diff --git a/src/lib/Menu/ContentRightSidebarBuilder.php b/src/lib/Menu/ContentRightSidebarBuilder.php index 0372f0abed..84d5085c5b 100644 --- a/src/lib/Menu/ContentRightSidebarBuilder.php +++ b/src/lib/Menu/ContentRightSidebarBuilder.php @@ -477,7 +477,7 @@ private function getContentPreviewItem( array $options ): ItemInterface { $versionNo = $content->getVersionInfo()->versionNo; - $languageCode = $content->contentInfo->mainLanguageCode; + $languageCode = $content->getDefaultLanguageCode(); $siteAccesses = $this->siteaccessResolver->getSiteAccessesListForLocation( $location,