Skip to content

Commit

Permalink
Jetpack mobile navigation: make sure correct dropdown item is selected (
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieur-z authored Nov 10, 2021
1 parent 306a6a0 commit 2c0a2e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/plugins/jetpack/_inc/client/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ function render() {
<Route path="/plans">
<Main routeName={ getRouteName( '/plans' ) } />
</Route>
<Route path="/recommendations">
<Main routeName={ getRouteName( '/recommendations' ) } />
</Route>
<Route path="/plans-prompt">
<Main routeName={ getRouteName( '/plans-prompt' ) } />
</Route>
Expand Down Expand Up @@ -113,6 +116,8 @@ export function getRouteName( path ) {
return _x( 'My Plan', 'Navigation item.', 'jetpack' );
case '/plans':
return _x( 'Plans', 'Navigation item.', 'jetpack' );
case '/recommendations':
return _x( 'Recommendations', 'Navigation item.', 'jetpack' );
case '/plans-prompt':
return _x( 'Plans', 'Navigation item.', 'jetpack' );
case '/settings':
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Navigation: make sure correct dropdown item is selected when visiting Recommendation section on mobile

0 comments on commit 2c0a2e1

Please sign in to comment.