Skip to content
Snippets Groups Projects
Unverified Commit f24b4cc4 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #17797 from seamuslee001/dev_core_1865

#1865 Remove civiwp and option query strings from redirected …
parents 6fb30c03 c6fa8da8
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