Query string brake redirection
-
Hi.
I found one problem – if some side script add query string to url, redirection is stop working.
So if I make redirect from /tour.html to /tour/begin/, it do not want redirect on url site_name.com/tour.html?_ga=123798719827
Quick fix is remove query string before making decision on where redirect our user.It can be done by changing from
$requested_path = esc_url_raw( $_SERVER['REQUEST_URI'] );
to
$requested_path = esc_url_raw( strtok($_SERVER['REQUEST_URI'],'?') );
on line 804
- The topic ‘Query string brake redirection’ is closed to new replies.