title: auth component wrong redirect cakephp 2.3
body: <p>my auth component in cake its redirecting wrong. The right path to go should be:</p>
  
  <pre><code>localhost/tlfmovil/usuarios/index
  </code></pre>
  
  <p>but its redirecting to </p>
  
  <pre><code>http://localhost/tlfmovil/tlfmovil/usuarios
  </code></pre>
  
  <p>if deactivate the auth component (no login, all access to my site) my site works fine</p>
  
  <p>this is my appcontroller</p>
  
  <pre><code>&lt;?php
  App::uses('Controller', 'Controller');
  
  class AppController extends Controller {
      public $components = array(
          'Session',
          'Auth' =&gt; array(
              /*'authorize' =&gt; array(
                  'Actions' =&gt; array('actionPath' =&gt; 'controllers')
              ),*/
              'authenticate' =&gt; array(
                  'Form' =&gt; array(
                      'userModel' =&gt; 'Usuario',
                      'fields' =&gt; array(
                          'username' =&gt; 'email',
                          'password' =&gt; 'password'
                      )
                  )
              ),
              'authorize' =&gt; array('Controller')
          ),
  
      );
  
      public function beforeFilter() {
          $this-&gt;Auth-&gt;loginAction = array('controller' =&gt; 'usuarios', 'action' =&gt; 'login');
          //$this-&gt;Auth-&gt;logoutRedirect = array('controller' =&gt; 'usuarios', 'action' =&gt; 'login');
          $this-&gt;Auth-&gt;loginRedirect = array('controller' =&gt; 'usuarios', 'action' =&gt; 'add');
          $this-&gt;Auth-&gt;authError = 'No Posee Permisos para Acceder a esta Sección';
          $this-&gt;set('logueado',$this-&gt;Auth-&gt;loggedIn()); ####Verifica si el usuario esta logueado 
          $this-&gt;set('usuarioActual',$this-&gt;Auth-&gt;user()); #####Manda la informacion del usuario logueado
          //$this-&gt;Auth-&gt;allow();
      }
  
      public function isAuthorized($user) {
          if ($user['grupo_id'] == '3'/* Administrador*/ || $user['grupo_id'] =='2' /*Usuario*/){
              return true;
          }
  
          return false;
      }
  }
  </code></pre>
  
  <p>usuariosController</p>
  
  <pre><code>&lt;?php
  class UsuariosController extends AppController{
      var $name = 'Usuarios';
      var $helpers = array('Html','Form');
      //var $scaffold;
  ...
  public function login() {
          if ($this-&gt;request-&gt;is('post')){     
              if ($this-&gt;Auth-&gt;login()){
                  //Configure::write('Session.timeout','30');
                  return $this-&gt;redirect($this-&gt;Auth-&gt;redirect());
              } else {
                  $this-&gt;Session-&gt;setFlash(__('Usuario o Contraseña Incorrecto'));
              }
          }
      }
  
      public function logout() {
          $this-&gt;redirect($this-&gt;Auth-&gt;logout());
      }
  
  
  }    
  
  ?&gt;
  </code></pre>
  
  <p>login.ctp</p>
  
  <pre><code>   &lt;?php
      echo $this-&gt;Session-&gt;flash('auth');
      echo $this-&gt;Form-&gt;create('Usuario', array('action' =&gt; 'login'));
      echo $this-&gt;Form-&gt;input('email',array('label' =&gt; 'Correo Electrónico'));
      echo $this-&gt;Form-&gt;input('password',array('label' =&gt; 'Contraseña'));
      echo $this-&gt;Form-&gt;end('Ingresar');
  
  ?&gt;
  </code></pre>