Nothing I see in Core would do that in either wp_redirect()
or wp_sanitize_redirect()
(which is used by wp_redirect()
). However…
- both functions are pluggable and so could have been replaced by
theme or plugin code. - And
wp_redirect()
has thewp_redirect
filter that can be used to
alter the redirect location– the part you are having trouble with.
Something could be causing trouble.
I don’t know how to guess at which of those two are the problem.