EllisLab/CodeIgniter — pull request #1768 by WDC (2012-09-04 00:51:26+00:00)
Title: Adds redirect_get() to URL Helper

I was tired of manually passing variables to redirect() like this:

```php
redirect('home/status?id=3');
```
And wanted the ability to pass an array such that it would automatically get url_encoded, imploded, etc.

My function, redirect_get(), operates almost identically as redirect(), but appends GET variables to the end of the URI.

**Example:**

```php
$get_vars = array('id' => 2, 'name' => "David Lemcoe", 'type' => 'delete');
redirect_get('home/status', $get_vars);
```
This will redirect the user to this URL:
http://example.com/home/status?id=2&name=David+Lemcoe&type=delete

You can also do a "location" or "refresh" header method, and the IIS logic from redirect() is also present.

I believe this will make the redirect() function a little nicer to use with dynamic GET variables.