Redirect to new settings

[MAILPOET-2679]
This commit is contained in:
Amine Ben hammou
2020-04-07 21:56:11 +02:00
committed by Veljko V
parent b33181d433
commit 0a8988191c
2 changed files with 6 additions and 7 deletions

View File

@@ -27,8 +27,7 @@ if (jQuery('#mailpoet_settings').length > 0) {
jQuery('.mailpoet_settings_submit').hide();
if (group === null) {
// show sending methods
jQuery('.mailpoet_sending_methods, .mailpoet_sending_methods_help').fadeIn();
window.location.href = '?page=mailpoet-new-settings#/mta';
} else {
// toggle SPF (hidden if the sending method is MailPoet)
jQuery('#mailpoet_mta_spf')[

View File

@@ -25,13 +25,13 @@ export default () => {
>
{t('signupConfirmationTab')}
</TabLink>
<a
className="nav-tab"
href="?page=mailpoet-settings#mta"
data-automation-id="send_with_settings_tab"
<TabLink
name="mta"
current={current}
automationId="send_with_settings_tab"
>
{t('sendWithTab')}
</a>
</TabLink>
{hasWooCommerce && (
<TabLink
name="woocommerce"