We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee842b2 commit 583d219Copy full SHA for 583d219
src/Models/Content.php
@@ -47,7 +47,13 @@ public function parent()
47
*/
48
public static function indexPage()
49
{
50
- return self::where('website_id', env('WEBSITE_ID'))->whereNull('parent_id')->orderBy('position', 'ASC')->first();
+ $languageCode = getCurrentLanguageCode();
51
+
52
+ return self::where('website_id', env('WEBSITE_ID'))
53
+ ->where('language_code', $languageCode)
54
+ ->whereNull('parent_id')
55
+ ->orderBy('position', 'ASC')
56
+ ->first();
57
}
58
59
/**
0 commit comments