Commit 40300fd069c4f50ffb53c8a4e9533708942d052a
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,7 +46,7 @@ | ||
| 46 | ) | 46 | ) |
| 47 | ->one(); | 47 | ->one(); |
| 48 | if (empty( $category )) { | 48 | if (empty( $category )) { |
| 49 | - \Yii::$app->response->redirect('/'); | 49 | + throw new HttpException(404, 'Page not found'); |
| 50 | } | 50 | } |
| 51 | $params[ 'category' ] = $category; | 51 | $params[ 'category' ] = $category; |
| 52 | } | 52 | } |