Skip to content

Commit

Permalink
dev/core#1865 Remove civiwp and option query strings from redirected …
Browse files Browse the repository at this point in the history
…url as they only relate to CiviCRM internal uses
  • Loading branch information
seamuslee001 committed Jul 12, 2020
1 parent 66f6ad9 commit c6fa8da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Mailing/Page/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6fa8da

Please sign in to comment.