Hi, There has been a bug fix recently regarding that particular issue. Please update to the latest master branch and try again.
You can find it here: https://github.com/cakephp/cakephp Bugfix commit: https://github.com/cakephp/cakephp/commit/1d18a4f702e75daba10e5003c1c8661b6c8e410c#commitcomment-3632609 Op zondag 14 juli 2013 05:34:42 UTC+2 schreef Sen het volgende: > > Hi all, > > I'm new with cakephp and right now testing authentication tutorial, why > the return url when using Auth.redirect() always return double baseurl, my > testing url is like this : http://localhost/cakeblog and when it redirect > after login success (previous page was posts/add), it always return > http://localhost/cakeblog/cakeblog/posts/add (double cakeblog). Any help > ? Tks. > > public function login() { > if ($this->request->is('post')) { > if ($this->Auth->login()) { > $this->redirect($this->Auth->redirectUrl()); > } else { > $this->Session->setFlash(__('Invalid username or password. Please > try again.')); > } > } > } > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
