title: Slim 3 response withRedirect
body: <p>I'm trying out slim responses object and redirect feature, i have routes and controllers like this :</p>
  
  <p>routes : </p>
  
  <pre><code>    $app-&gt;get('/', 'index:index')-&gt;setName('index');
  </code></pre>
  
  <p>in my controller i have this line :</p>
  
  <pre><code>    return $response-&gt;withRedirect($this-&gt;router-&gt;pathFor('index'));
  </code></pre>
  
  <p>index function in index class : </p>
  
  <pre><code>public function index($request, $response)
  {
      return $this-&gt;view-&gt;render($response, 'index.html', $this-&gt;data);
  }
  </code></pre>
  
  <p>its working, but it gives a HTML document response instead of redirecting me, is this correct behaviour ? if so, how do i redirect to that route ?</p>