Passing a URL with GET parameters breaks
-
Hi Team,
Thanks for a great plugin. I’ve just installed it and in testing I’m passing a URL to the buttons that includes a GET parameter. When I click on the button I get an error because the URL has been munched.
I’m passing a relative URL to a permalink that looks like this:
/my-page?abc=5
I’ve been able to fix the problem I experienced by adding an extra line of code to the file pdf-print.php, near line 512
$url = esc_url($url); // existing code
$url = str_replace(‘#038;’, ‘&’, $url); // new code to unmunch the URLWith this fix the URL works as expected.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Passing a URL with GET parameters breaks’ is closed to new replies.