diff --git a/CHANGELOG.md b/CHANGELOG.md index f35c054c7f..a25dbf9329 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ HumHub Changelog - Fix: #5652: Fix undefined UrlOembed provider pattern - Fix #5660: Individual modules marked with "Official" label in Marketplace - Fix #5657: Fix links of user counters in container headers +- Fix #5676: Use 404 page for deleted content request 1.11.1 (April 22, 2022) diff --git a/protected/humhub/modules/content/components/ContentAddonController.php b/protected/humhub/modules/content/components/ContentAddonController.php index d8c441640d..13153ab892 100644 --- a/protected/humhub/modules/content/components/ContentAddonController.php +++ b/protected/humhub/modules/content/components/ContentAddonController.php @@ -90,7 +90,7 @@ class ContentAddonController extends Controller $target = $modelClass::findOne(['id' => $pk]); if ($target === null) { - throw new HttpException(500, 'Could not find underlying content or content addon record!'); + throw new HttpException(404, 'Could not find underlying content or content addon record!'); } if ($target instanceof ContentAddonActiveRecord) {