Skip to content

Commit 37d76a8

Browse files
committed
only set when alternateLinks is greater than 1
1 parent 6d14cf7 commit 37d76a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/MLPage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function resolveMenuItem(object $item, string $url, Theme $theme):
3131
$alternateLinks[$locale] = Url::to($pageUrl);
3232
}
3333

34-
if ($alternateLinks) {
34+
if (count($alternateLinks) > 1) {
3535
$result['alternateLinks'] = $alternateLinks;
3636
}
3737
}

0 commit comments

Comments
 (0)