| @@ -818,11 +818,15 @@ | ||
| 818 | 818 | } |
| 819 | 819 | |
| 820 | 820 | $link = $host->is_wpcom_platform() ? $wpcom_link : Redirect::get_url( 'jetpack-support-sharing-block' ); |
| 821 | 821 | |
| 822 | + $site_editor_url = admin_url( | |
| 823 | + 'site-editor.php?p=' . rawurlencode( '/wp_template/' . get_stylesheet() . '//single' ) . '&canvas=edit' | |
| 824 | + ); | |
| 825 | + | |
| 822 | 826 | ?> |
| 823 | 827 | <div class="sharing-block-message__buttons-wrapper"> |
| 824 | - <a href="<?php echo esc_url( admin_url( 'site-editor.php?path=%2Fwp_template' ) ); ?>" class="button button-primary"> | |
| 828 | + <a href="<?php echo esc_url( $site_editor_url ); ?>" class="button button-primary"> | |
| 825 | 829 | <?php esc_html_e( 'Go to the site editor', 'jetpack' ); ?> |
| 826 | 830 | </a> |
| 827 | 831 | <a data-target="wpcom-help-center" href="<?php echo esc_url( $link ); ?>" class="button" target="_blank" rel="noopener noreferrer"> |
| 828 | 832 | <?php esc_html_e( 'Learn how to add Sharing Buttons', 'jetpack' ); ?> |