diff --git a/CRM/Mailing/Page/Url.php b/CRM/Mailing/Page/Url.php index 29be68c66110..cef3c8d5e123 100644 --- a/CRM/Mailing/Page/Url.php +++ b/CRM/Mailing/Page/Url.php @@ -91,10 +91,16 @@ protected function extractPassthroughParameters():string { unset($query_param['qid']); unset($query_param['u']); unset($query_param[$config->userFrameworkURLVar]); + + // @see dev/core#1865 for some additional query strings we need to remove as well. if ($config->userFramework === 'WordPress') { // Ugh unset($query_param['page']); unset($query_param['noheader']); + unset($query_param['civiwp']); + } + elseif ($config->userFramework === 'Joomla') { + unset($query_param['option']); } $query_string = http_build_query($query_param);