Thursday, July 31, 2014

unauthorizedRedirect problem

Hi, guys!

I'm developing a little app with cake 2.5.2. After setup Auth component, every time I try to access a unauthorized action typing the url in the address bar, I'm redirected to another url with duplicated cakephp folder. 

Example: localhost/cakephp/test (unauthorized) => localhost/cakephp/cakephp

If I try to access the same url through links (without typing in the address bar), unauthorized redirect works normally. I don't want to set the Auth component property unauthorizedRedirect because I want to be redirected to the previous page, but this is not working if I type an unauthorized url in the address bar.

Can you help me? If I have not been clear, let me know.

Thanks.

--
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: