Commit 68bb4394330028b62c850cd475f2dd6b10cedde6
1 parent
0e3f5867
-Menu items fixed
Showing
3 changed files
with
21 additions
and
21 deletions
Show diff stats
backend/views/layouts/menu_blog.php
| ... | ... | @@ -8,24 +8,24 @@ |
| 8 | 8 | 'items' => [ |
| 9 | 9 | [ |
| 10 | 10 | 'label' => \Yii::t('catalog', 'Articles'), |
| 11 | - 'url' => [ 'blog-article/index' ], | |
| 11 | + 'url' => [ '/blog-article/index' ], | |
| 12 | 12 | 'icon' => 'file-text', |
| 13 | 13 | ], |
| 14 | 14 | [ |
| 15 | 15 | 'label' => \Yii::t('catalog', 'Categories'), |
| 16 | - 'url' => [ 'blog-category/index' ], | |
| 16 | + 'url' => [ '/blog-category/index' ], | |
| 17 | 17 | 'icon' => 'book', |
| 18 | 18 | ], |
| 19 | 19 | [ |
| 20 | 20 | 'label' => \Yii::t('catalog', 'Tags'), |
| 21 | - 'url' => [ 'blog-tag/index' ], | |
| 21 | + 'url' => [ '/blog-tag/index' ], | |
| 22 | 22 | 'icon' => 'tag', |
| 23 | 23 | ], |
| 24 | 24 | ], |
| 25 | 25 | ], |
| 26 | 26 | [ |
| 27 | 27 | 'label' => \Yii::t('catalog', 'Comments'), |
| 28 | - 'url' => [ 'comment/index' ], | |
| 28 | + 'url' => [ '/comment/index' ], | |
| 29 | 29 | 'icon' => 'comment-o', |
| 30 | 30 | 'active' => function () { |
| 31 | 31 | return \Yii::$app->controller->id === 'comment'; | ... | ... |
backend/views/layouts/menu_main.php
| ... | ... | @@ -31,7 +31,7 @@ |
| 31 | 31 | ], |
| 32 | 32 | [ |
| 33 | 33 | 'label' => \Yii::t('core', 'Static pages'), |
| 34 | - 'url' => [ 'page/index' ], | |
| 34 | + 'url' => [ '/page/index' ], | |
| 35 | 35 | 'icon' => 'file-text', |
| 36 | 36 | 'active' => function () { |
| 37 | 37 | return \Yii::$app->controller->id === 'page'; |
| ... | ... | @@ -44,17 +44,17 @@ |
| 44 | 44 | 'items' => [ |
| 45 | 45 | [ |
| 46 | 46 | 'label' => \Yii::t('core', 'Seo pages'), |
| 47 | - 'url' => [ 'alias/index' ], | |
| 47 | + 'url' => [ '/alias/index' ], | |
| 48 | 48 | 'icon' => 'file-text', |
| 49 | 49 | ], |
| 50 | 50 | [ |
| 51 | 51 | 'label' => \Yii::t('core', 'Robots'), |
| 52 | - 'url' => [ 'settings/robots' ], | |
| 52 | + 'url' => [ '/settings/robots' ], | |
| 53 | 53 | 'icon' => 'android', |
| 54 | 54 | ], |
| 55 | 55 | [ |
| 56 | 56 | 'label' => \Yii::t('core', 'Codes'), |
| 57 | - 'url' => [ 'settings/codes' ], | |
| 57 | + 'url' => [ '/settings/codes' ], | |
| 58 | 58 | 'icon' => 'code', |
| 59 | 59 | ], |
| 60 | 60 | [ | ... | ... |
backend/views/layouts/menu_shop.php
| ... | ... | @@ -9,27 +9,27 @@ |
| 9 | 9 | 'items' => [ |
| 10 | 10 | [ |
| 11 | 11 | 'label' => \Yii::t('catalog', 'Categories'), |
| 12 | - 'url' => [ 'category/index' ], | |
| 12 | + 'url' => [ '/category/index' ], | |
| 13 | 13 | 'icon' => 'file-text', |
| 14 | 14 | ], |
| 15 | 15 | [ |
| 16 | 16 | 'label' => \Yii::t('catalog', 'Brands'), |
| 17 | - 'url' => [ 'brand/index' ], | |
| 17 | + 'url' => [ '/brand/index' ], | |
| 18 | 18 | 'icon' => 'file-text', |
| 19 | 19 | ], |
| 20 | 20 | [ |
| 21 | 21 | 'label' => \Yii::t('catalog', 'Products'), |
| 22 | - 'url' => [ 'product/index' ], | |
| 22 | + 'url' => [ '/product/index' ], | |
| 23 | 23 | 'icon' => 'gift', |
| 24 | 24 | ], |
| 25 | 25 | [ |
| 26 | 26 | 'label' => \Yii::t('catalog', 'Import'), |
| 27 | - 'url' => [ 'import/index' ], | |
| 27 | + 'url' => [ '/import/index' ], | |
| 28 | 28 | 'icon' => 'download', |
| 29 | 29 | ], |
| 30 | 30 | [ |
| 31 | 31 | 'label' => \Yii::t('catalog', 'Export'), |
| 32 | - 'url' => [ 'export/index' ], | |
| 32 | + 'url' => [ '/export/index' ], | |
| 33 | 33 | 'icon' => 'upload', |
| 34 | 34 | ], |
| 35 | 35 | ], |
| ... | ... | @@ -45,11 +45,11 @@ |
| 45 | 45 | 'items' => [ |
| 46 | 46 | [ |
| 47 | 47 | 'label' => \Yii::t('app', 'Complementary'), |
| 48 | - 'url' => [ 'product-option-group-complementary/index' ], | |
| 48 | + 'url' => [ '/product-option-group-complementary/index' ], | |
| 49 | 49 | ], |
| 50 | 50 | [ |
| 51 | 51 | 'label' => \Yii::t('app', 'Exclusion'), |
| 52 | - 'url' => [ 'product-option-group-exclusion/index' ], | |
| 52 | + 'url' => [ '/product-option-group-exclusion/index' ], | |
| 53 | 53 | ], |
| 54 | 54 | ], |
| 55 | 55 | ], |
| ... | ... | @@ -59,11 +59,11 @@ |
| 59 | 59 | 'items' => [ |
| 60 | 60 | [ |
| 61 | 61 | 'label' => \Yii::t('app', 'Complementary'), |
| 62 | - 'url' => [ 'variant-option-group-complementary/index' ], | |
| 62 | + 'url' => [ '/variant-option-group-complementary/index' ], | |
| 63 | 63 | ], |
| 64 | 64 | [ |
| 65 | 65 | 'label' => \Yii::t('app', 'Exclusion'), |
| 66 | - 'url' => [ 'variant-option-group-exclusion/index' ], | |
| 66 | + 'url' => [ '/variant-option-group-exclusion/index' ], | |
| 67 | 67 | ], |
| 68 | 68 | ], |
| 69 | 69 | ], |
| ... | ... | @@ -76,22 +76,22 @@ |
| 76 | 76 | 'items' => [ |
| 77 | 77 | [ |
| 78 | 78 | 'label' => \Yii::t('order', 'Orders'), |
| 79 | - 'url' => [ 'order/index' ], | |
| 79 | + 'url' => [ '/order/index' ], | |
| 80 | 80 | 'icon' => 'first-order', |
| 81 | 81 | ], |
| 82 | 82 | [ |
| 83 | 83 | 'label' => \Yii::t('order', 'Label'), |
| 84 | - 'url' => [ 'label/index' ], | |
| 84 | + 'url' => [ '/label/index' ], | |
| 85 | 85 | 'icon' => 'tag', |
| 86 | 86 | ], |
| 87 | 87 | [ |
| 88 | 88 | 'label' => \Yii::t('order', 'Delivery'), |
| 89 | - 'url' => [ 'delivery/index' ], | |
| 89 | + 'url' => [ '/delivery/index' ], | |
| 90 | 90 | 'icon' => 'truck', |
| 91 | 91 | ], |
| 92 | 92 | [ |
| 93 | 93 | 'label' => \Yii::t('order', 'Payment'), |
| 94 | - 'url' => [ 'payment/index' ], | |
| 94 | + 'url' => [ '/payment/index' ], | |
| 95 | 95 | 'icon' => 'money', |
| 96 | 96 | ], |
| 97 | 97 | ], | ... | ... |