[TYPO3-dev] felogin: redirectMode = login,getpost
Steffen Kamper
info at sk-typo3.de
Tue Jan 6 12:06:12 CET 2009
Hi Steffen,
Steffen Gebert schrieb:
> Hi Steffen and rest of felogin interrested people out there ;)
>
> I'm just trying to use felogin (4.3-trunk) with redirectMode = login,getpost
>
> - If a user wants to access a protected page, he's redirected to login page by typolink function. After login he/she should be redirected to the page he/she tried to access (mode getpost, GET variable redirect_url).
> - If a user wants to login by opening login page, he should be redirected to a specific Welcome-page (just if there's no redirect_url - mode login).
>
> My problem is that this doesn't work and after browsing the code I think there's a little bug:
>
> getpost always overwrites $redirect_url ($redirect_url = $this->redirectUrl;, line 371), even if it's empty and so kicks out my default redirect.
>
> I suppose to change the line to assign $redirect_url only if $this->redirect_url is NOT empty.
>
> I could just solve my problem by using redirectFirstMethod and changing redirectMode order. But nevertheless I find it quite inconvenient to use the empty variable's "value".
>
> Is this the bug or is there a bug in my mind? :)
>
> Merry christmas!
>
> Steffen
sry for late reply. I have some other work that has to be done first,
but i will look intensively to this redirect-Mode next week. Then i will
answer you in detail.
vg Steffen
More information about the TYPO3-dev
mailing list