title: Redirect from embedded controller
body: <p>I use <a href="http://symfony.com/doc/current/book/templating.html#embedding-controllers" rel="noreferrer">embedded controller</a> to render form that's used on multiple pages:</p>
  
  <p><strong>Twig</strong></p>
  
  <pre><code>{% render 'Bundle:Controller:someForm' %}
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>public function someFormAction()
  {
      // Some logic
  
      ...
  
      if ($form-&gt;isValid()) {
  
          ...
  
          $this-&gt;get('session')-&gt;setFlash('successful', "Woey!");
  
          return $this-&gt;redirect($this-&gt;generateUrl('homepage'));
      }
  
      return $this-&gt;render('Bundle:Template:form.html.twig', array('form' =&gt; $form-&gt;createView()));
  }
  </code></pre>
  
  <p>I need to redirect back to homepage after the form was successfully submitted as a part of <a href="http://en.wikipedia.org/wiki/Post/Redirect/Get" rel="noreferrer">post-redirect-get</a> design pattern. If I use it as I described above, I'll get exception as response from embedded controller was 302 instead of 200 (at least I expect it works like this).</p>
  
  <p>Is it possible to redirect normally in such scenario? Or am I approaching the situation (with form that's rendered on multiple pages) from totally wrong angle?</p>