Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update links to point to correct "manage plugin" path #8671

Merged
merged 1 commit into from
Jan 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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