Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
civicrm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plugins
civicrm
Commits
7add652d
Verified
Commit
7add652d
authored
4 years ago
by
Kevin Cristiano
Browse files
Options
Downloads
Patches
Plain Diff
dev/core#1865 Remove civiwp and option query strings from redirected
PR 17797 @seamuslee001
parent
11349796
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
civicrm/CRM/Mailing/Page/Url.php
+6
-0
6 additions, 0 deletions
civicrm/CRM/Mailing/Page/Url.php
with
6 additions
and
0 deletions
civicrm/CRM/Mailing/Page/Url.php
+
6
−
0
View file @
7add652d
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment