Skip to content

Commit

Permalink
Fix redirect page 500 error (Fixes ethercreative#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Apr 19, 2023
1 parent ecd4c56 commit ad87bdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.1.1 - 2023-04-19
### Fixed
- Fix redirect page 500 error (Fixes #448)

## 4.1.0 - 2023-04-12
### Fixed
- Fix SEO field focus keywords on Craft 4 (Fixes #431, #407, via @dyerc)
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/RedirectsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function actionIndex ()
);

$sites = ['null' => 'All Sites'];
foreach (Craft::$app->sites->getAllSites()->where(['dateDeleted' => null]) as $site)
foreach (Craft::$app->sites->getAllSites() as $site)
$sites[$site->id] = $site->name;

return $this->renderTemplate('seo/redirects', [
Expand Down Expand Up @@ -138,4 +138,4 @@ public function actionDelete ()
return $this->asJson([ 'success' => true ]);
}

}
}

0 comments on commit ad87bdf

Please sign in to comment.