diff --git a/includes/Compat/NavigationRegistry.php b/includes/Compat/NavigationRegistry.php index 9525eda..0e60760 100644 --- a/includes/Compat/NavigationRegistry.php +++ b/includes/Compat/NavigationRegistry.php @@ -127,7 +127,7 @@ class NavigationRegistry { 'path' => '/orders', 'icon' => 'receipt-text', 'children' => [ - ['label' => __('All orders', 'woonoow'), 'mode' => 'spa', 'path' => '/orders'], + ['label' => __('All orders', 'woonoow'), 'mode' => 'spa', 'path' => '/orders', 'exact' => true], ['label' => __('New', 'woonoow'), 'mode' => 'spa', 'path' => '/orders/new'], // Future: Drafts, Recurring, etc. ], @@ -138,7 +138,7 @@ class NavigationRegistry { 'path' => '/products', 'icon' => 'package', 'children' => [ - ['label' => __('All products', 'woonoow'), 'mode' => 'spa', 'path' => '/products'], + ['label' => __('All products', 'woonoow'), 'mode' => 'spa', 'path' => '/products', 'exact' => true], ['label' => __('New', 'woonoow'), 'mode' => 'spa', 'path' => '/products/new'], ['label' => __('Categories', 'woonoow'), 'mode' => 'spa', 'path' => '/products/categories'], ['label' => __('Tags', 'woonoow'), 'mode' => 'spa', 'path' => '/products/tags'], @@ -151,7 +151,7 @@ class NavigationRegistry { 'path' => '/customers', 'icon' => 'users', 'children' => [ - ['label' => __('All customers', 'woonoow'), 'mode' => 'spa', 'path' => '/customers'], + ['label' => __('All customers', 'woonoow'), 'mode' => 'spa', 'path' => '/customers', 'exact' => true], ['label' => __('New', 'woonoow'), 'mode' => 'spa', 'path' => '/customers/new'], ], ],