Skip to content

Commit

Permalink
Change launchpad page slug
Browse files Browse the repository at this point in the history
  • Loading branch information
wpalani committed Apr 22, 2024
1 parent 24ad9da commit 1a668fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
6 changes: 3 additions & 3 deletions src/app/data/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -66,7 +66,7 @@ export const AppRoutes = () => {

const topRoutePaths = [
'/home',
'/pages&posts',
'/pages-and-posts',
'/store',
'/marketplace',
'/performance',
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/integration/pagesAndPosts.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down

0 comments on commit 1a668fa

Please sign in to comment.