Skip to content
Snippets Groups Projects
Commit bcbfa93e authored by Seamus Lee's avatar Seamus Lee
Browse files

#1865 Remove civiwp and option query strings from redirected url as...

#1865 Remove civiwp and option query strings from redirected url as they only relate to CiviCRM internal uses
parent b5919dad
No related branches found
No related tags found
No related merge requests found
......@@ -91,10 +91,16 @@ class CRM_Mailing_Page_Url extends CRM_Core_Page {
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment