Skip to content

Commit

Permalink
Update links to point to correct plugin manage path (#8671)
Browse files Browse the repository at this point in the history
  • Loading branch information
dereksmart authored and jeherve committed Jan 30, 2018
1 parent 2d1987e commit 2d43e24
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _inc/client/at-a-glance/plugins.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class DashPluginUpdates extends Component {
activateAndRedirect( e ) {
e.preventDefault();
this.props.activateManage()
.then( window.location = 'https://wordpress.com/plugins/' + this.props.siteRawUrl );
.then( window.location = 'https://wordpress.com/plugins/manage/' + this.props.siteRawUrl );
}

getContent() {
Expand Down Expand Up @@ -69,7 +69,7 @@ class DashPluginUpdates extends Component {
{
this.props.isDevMode
? ''
: __( '{{a}}Turn on plugin auto updates{{/a}}', { components: { a: <a href={ 'https://wordpress.com/plugins/' + this.props.siteRawUrl } /> } } )
: __( '{{a}}Turn on plugin auto updates{{/a}}', { components: { a: <a href={ 'https://wordpress.com/plugins/manage/' + this.props.siteRawUrl } /> } } )
}
</p>
</DashItem>
Expand Down
2 changes: 1 addition & 1 deletion _inc/client/components/dash-item/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class DashItem extends Component {
toggle = (
<a href={ this.props.isDevMode
? this.props.siteAdminUrl + 'update-core.php'
: 'https://wordpress.com/plugins/' + this.props.siteRawUrl
: 'https://wordpress.com/plugins/manage/' + this.props.siteRawUrl
} >
<SimpleNotice
showDismiss={ false }
Expand Down
2 changes: 1 addition & 1 deletion _inc/client/components/dash-item/test/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ describe( 'DashItem', () => {
} );

it( 'when it is activated, the warning badge is linked to Plugins screen in WordPress.com', () => {
expect( wrapper.find( 'SectionHeader' ).find( 'a' ).props().href ).to.be.equal( 'https://wordpress.com/plugins/' + manageProps.siteRawUrl );
expect( wrapper.find( 'SectionHeader' ).find( 'a' ).props().href ).to.be.equal( 'https://wordpress.com/plugins/manage/' + manageProps.siteRawUrl );
} );

it( "when status is 'is-working', the warning badge has an 'active' label", () => {
Expand Down
2 changes: 1 addition & 1 deletion modules/manage/confirm-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

switch( $section ) {
case 'plugins':
$link = 'https://wordpress.com/plugins/' . $normalized_site_url;
$link = 'https://wordpress.com/plugins/manage/' . $normalized_site_url;
$link_title = __( 'Manage Your Plugins', 'jetpack' );
break;

Expand Down

0 comments on commit 2d43e24

Please sign in to comment.