Skip to content
Snippets Groups Projects
Verified Commit 7add652d authored by Kevin Cristiano's avatar Kevin Cristiano :earth_americas:
Browse files

dev/core#1865 Remove civiwp and option query strings from redirected

PR 17797 @seamuslee001
parent 11349796
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