diff --git a/controller/action/MailActions.class.php b/controller/action/MailActions.class.php index b0b88813..67d8bf7d 100644 --- a/controller/action/MailActions.class.php +++ b/controller/action/MailActions.class.php @@ -9,9 +9,11 @@ class MailActions extends Actions { public static function executeListSubscribe() { + $nextUrl = isset($_POST['returnUrl']) && $_POST['returnUrl'] ? $_POST['returnUrl'] : '/join-list'; + if ($_SERVER['REQUEST_METHOD'] !== 'POST') { - Controller::redirect('/get'); + Controller::redirect($nextUrl); } $email = $_POST['email']; @@ -41,7 +43,7 @@ class MailActions extends Actions } } - Controller::redirect(isset($_POST['return_url']) && $_POST['return_url'] ? $_POST['return_url'] : '/get'); + Controller::redirect($nextUrl); } public static function prepareJoinList(array $vars) diff --git a/view/mail/joinList.php b/view/mail/joinList.php index 15c92b5c..b888b92d 100644 --- a/view/mail/joinList.php +++ b/view/mail/joinList.php @@ -18,5 +18,11 @@ + +
+ \ No newline at end of file diff --git a/view/page/get.php b/view/page/get.php index 39732369..3aa18dc1 100644 --- a/view/page/get.php +++ b/view/page/get.php @@ -12,6 +12,7 @@LBRY is coming out on your favorite platform soon. Join our list to know when.
'Go', + 'returnUrl' => '/get', 'listId' => Mailchimp::LIST_GENERAL_ID, 'mergeFields' => ['CLI' => 'No'], 'btnClass' => 'btn-alt' diff --git a/view/page/home.php b/view/page/home.php index b30031e2..09bd96cb 100644 --- a/view/page/home.php +++ b/view/page/home.php @@ -40,14 +40,25 @@