Friday, January 25, 2013

Any way to check url before redirect?

Hi

I am searching for a way in cake to check an url before it is called
(via redirect).

Real world:

The user could set a custom start page to which he is redirect after
login. This page is mapped to "/" all the time too. So far so good :)
Unfortunately it is not predictable that this page is available in the
future (deleted or just because he has no rights to access this page
anymore). Of course this results in an error or even worse in a
redirect loop.

What I like to do is to check the given url for accessibility and if
it is not available redirect the user to a default page (which is
always accessible).

Can this be achieved with cake?

Thanks,
Frank

--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.

No comments: