Skip to content

Commit

Permalink
Fix subscription uri for all types of permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgi Nikolov committed Mar 6, 2019
1 parent 2f8c7db commit 0c374ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/includes/SettingsPages/SubscriptionOptionsSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,11 @@ public function mailjet_subscribe_confirmation_from_widget($subscription_email,
$message = file_get_contents($subscriptionTemplate);

$permalinkStructure = get_option('permalink_structure');
$qm = ("" === $permalinkStructure) ? '&' : '?';
if (!$thankYouPageId) {
$qm = '?';
} else {
$qm = ("" === $permalinkStructure) ? '&' : '?';
}

$emailData = array(
'__EMAIL_TITLE__' => $email_title,
Expand Down

0 comments on commit 0c374ee

Please sign in to comment.