title: Symfony 1.4 - Pass URL in get request
body: <p>I want to redirect the previous page after the login. My first question is what is the best solution for it? </p>
  
  <p>I try following solution. 
  send previous page url in get request and redirect to the url that in get request. </p>
  
  <p>This is my previous page action. </p>
  
  <pre><code>public function executeVotes(sfWebRequest $request)
  {
          $chaletId = (int) $request-&gt;getParameter('id');
          $this-&gt;rates = (int) $request-&gt;getParameter('rates', 0);
  
          if (
              ($this-&gt;getUser()-&gt;isAuthenticated() === FALSE )
              || ($this-&gt;getUser()-&gt;hasCredential('member_permission') === FALSE)
          ) {
              $this-&gt;redirect('member_signin', array(
                  'redirect' =&gt; $this-&gt;getController()-&gt;genUrl('chalet_votes/' . $chaletId . '/?rates=' . $this-&gt;rates, true)
              ));
          }
  }
  </code></pre>
  
  <p>This is my signin action</p>
  
  <pre><code>public function executeSignin(sfWebRequest $request)
  {
          $this-&gt;redirectUrl = $this-&gt;getRequest()-&gt;getParameter('redirect');
  
          echo $this-&gt;redirectUrl; die;
  }
  </code></pre>
  
  <p>This is routers for these actions. </p>
  
  <pre><code>member_signin:
    url: /member/login/*
    param: { module: member, action: signin}
  
  votes:
    url: /chalet/votes/:id
    param: { module: test, action: votes }
  </code></pre>
  
  <p>This is url after redirect to the signin page. </p>
  
  <pre><code>http://test.dev/member/login/redirect/http%3A%2F%2Fchalet.dev%2Fchalet_votes%2F1%2Frates%2F9
  </code></pre>
  
  <p>My server show 404 page error. What is the issue? How can i do it?</p>