drupal_goto(request_uri()) replaces my '?', '=' and '&' in url I need to redirect user from a page with example.com/node/add/dispo?arg1=1&amp;arg2=2 to the same type of URL. But when I simply do a drupal_goto(request_uri());, it redirects my user to example.com/node/add/dispo%25F%3C etc....

I tried a str_replace but it didnt work.

Would you have any workaround ?
drupal_goto() accepts an $options parameter to be passed on to the url() function. You can pass a query string like this:

$options = array('query' =&gt; array('foo' =&gt; 'bar'));
drupal_goto('path', $options);


That example will forward on to /path?foo=bar