Friday, January 25, 2013

Re: Any way to check url before redirect?

Thank you :) Thats a good starting point, but how do I check there if
the redirect will be successfull?

Frank

On Jan 25, 11:48 am, euromark <dereurom...@gmail.com> wrote:
> Use a component and its beforeRedirect() callback
> see the docs for more infos, but basically you can intercept the redirect
> this way.
>
> Am Freitag, 25. Januar 2013 11:28:37 UTC+1 schrieb LDSign:
>
>
>
>
>
>
>
>
>
> > 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: