Commit 40300fd069c4f50ffb53c8a4e9533708942d052a

Authored by Alexey Boroda
1 parent d75b9d34

-Siblings bug

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
CatalogUrlManager.php
... ... @@ -46,7 +46,7 @@
46 46 )
47 47 ->one();
48 48 if (empty( $category )) {
49   - \Yii::$app->response->redirect('/');
  49 + throw new HttpException(404, 'Page not found');
50 50 }
51 51 $params[ 'category' ] = $category;
52 52 }
... ...