diff --git a/inc/Admin.php b/inc/Admin.php index a5673d0a8..0b9e50ce2 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -67,7 +67,7 @@ public static function subpages() { 'bluehost#/home' => __( 'Home', 'wp-plugin-bluehost' ), ); $pagesAndPosts = array( - 'bluehost#/pages&posts' => __( 'Pages & Posts', 'wp-plugin-bluehost' ), + 'bluehost#/pages-and-posts' => __( 'Pages & Posts', 'wp-plugin-bluehost' ), ); $store = array( 'bluehost#/store' => __( 'Store', 'wp-plugin-bluehost' ), diff --git a/src/app/data/routes.js b/src/app/data/routes.js index 95f6aaeb7..6826209fa 100644 --- a/src/app/data/routes.js +++ b/src/app/data/routes.js @@ -19,7 +19,7 @@ import Staging from '../pages/staging'; import Help from '../pages/help'; import { getMarketplaceSubnavRoutes } from '@modules/wp-module-marketplace/components/marketplaceSubnav'; import { ReactComponent as HelpIcon } from '../components/icons/HelpIcon.svg'; -import PagesAndPosts from '../pages/pagesAndPosts'; +import PagesAndPosts from '../pages/pages-and-posts'; const addPartialMatch = ( prefix, path ) => prefix === path ? `${ prefix }/*` : path; @@ -66,7 +66,7 @@ export const AppRoutes = () => { const topRoutePaths = [ '/home', - '/pages&posts', + '/pages-and-posts', '/store', '/marketplace', '/performance', @@ -84,7 +84,7 @@ export const routes = [ condition: true, }, { - name: '/pages&posts', + name: '/pages-and-posts', title: __( 'Pages & Posts', 'wp-plugin-bluehost' ), Component: PagesAndPosts, Icon: DocumentDuplicateIcon, diff --git a/tests/cypress/integration/pagesAndPosts.cy.js b/tests/cypress/integration/pagesAndPosts.cy.js index 31b81cff9..fe5dd6e05 100644 --- a/tests/cypress/integration/pagesAndPosts.cy.js +++ b/tests/cypress/integration/pagesAndPosts.cy.js @@ -5,7 +5,7 @@ describe( 'Pages & Posts', function () { cy.visit( '/wp-admin/admin.php?page=' + Cypress.env( 'pluginId' ) + - '#/pages&posts' + '#/pages-and-posts' ); cy.window() .its( 'NewfoldRuntime' )