Skip to content

Commit

Permalink
Merge branch 'hotfix/1.4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
werner-freytag committed May 17, 2023
2 parents 45bf7cc + 847c9da commit c532489
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ protected function publishedCollectionTerms()

protected static function siteFilter(\Statamic\Sites\Site $currentSite): callable
{
return static function (\Statamic\Entries\Entry $entry) use ($currentSite) {
return $entry->redirectUrl() === null
&& $entry->locale() === $currentSite->lang();
return static function ($entry) use ($currentSite) {
return !$entry->isRedirect() && $entry->locale() === $currentSite->handle();
};
}

Expand Down

0 comments on commit c532489

Please sign in to comment.