[TYPO3] redirection back to original page after login

Fred hamel at urbansecurity.org
Fri Oct 26 15:14:48 CEST 2007


I solved this by putting my loginbox (native) on the TS of the page I 
want to pretect.
With a conditional, if no user is logged the loginbox is displayed, when 
he is logged the content is displayed.
Something like that :

[usergroup = *]
#if any user is logged, normal display

[else]

temp.myloginform = TEXT
temp.myloginform.insertData = 1
temp.myloginform.value (
<div id="form">
    <form action="index.php?id={$ID_PAGE}" method="POST">
...
    </form>
    <p class="bodytext">If you are not yet a member, click <a 
href="index.php?id=161" title="Click here to contact us" target="_self" 
 >HERE</a> to contact us.</p>
</div>
    )
)

page.10.subparts.zone_normal < temp.myloginform
[global]


Cate & Peter a écrit :
> Hi all
>
>  
>
> I am using newloginbox, and I want to automatically redirect users back to
> the original page (before being forwarded to the login page) . or at least
> provide a link. I found a couple of extensions that allow redirection to a
> specified page, but I want something dynamic, that will quickly and easily
> take users back to where they were.
>
>  
>
> Does anyone have a solution for this?
>
>  
>
> Thanks in advance
>
>  
>
>
> Cate 
>
>
>  
>
>   


More information about the TYPO3-english mailing list