I'd actually expect to be redirected to the page I wanted to visit
initially if using an external link. But it seems like the link is not
stored anywhere.

Means:
1. I click a link which points to http://myserver/posts/view/123
2. Cake will mention that there is no login yet and redirect me to the
login page
3. After providing my login credentials I press login
4. I'd expect to be forwarded to posts/view/123 but I am forwarded
to /

Unfortunatelly it seems like if he does not remember the string 'posts/
view/123' in step 2, if I am using a link. If I enter it into the
adress bar it works fine - the link string is stored to Auth.redirect.
But when I dump Auth.redirect after having clicked a link instead of
having entered it manually, it is empty.


Right now I have to right-click each link, copy link location,

On 15 Feb., 16:06, euromark <[email protected]> wrote:
> what do you expect Auth.redirect to be when you come from an external
> link?
>
> On 15 Feb., 15:48, René Weber <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi there,
>
> > after searching and reading through existing Posts, I still have not
> > found an answer to my Problem:
>
> > I am running Cake 1.3 and using Auth Component for every page.
>
> > If I open a page directly by enteringhttp://myserver/posts/view/123
> > he will redirect me to login and after successful login he will
> > present post 123 to me.
> > If I open a page by clicking on a link with the same URL, he will
> > redirect me to login and afterwars to /
>
> > Therese is NO AutoRedirect->false and there I even removed my Routes
> > for testing.
> > When I dump Auth.redirect, I will find an empty variable when coming
> > from external Links.
>
> > Any Ideas?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to