5 of 5
5
New Extension:  Redirect After Login (Twomile)
Posted: 17 June 2010 04:44 PM   [ Ignore ]   [ # 73 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1908
Joined  09-16-2004

This solved on my major headaches recently when I couldn’t get return or override return to work on a login form.
Many thanks!

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. I’m @erwinheiser

Profile
 
 
Posted: 21 June 2010 09:56 PM   [ Ignore ]   [ # 74 ]  
Summer Student
Total Posts:  13
Joined  11-22-2009
Cog Design - 01 June 2010 08:01 AM

Hi Corey,

Managed to get my issue sorted, and it’s working great! However still experienced the same issue as Jim F (the ext. leaving out index.php) and had to modify the extension to include the index page.

Thanks,

Jack

How exactly did you modify the extension to include the index page?  My EE install is using “main” instead of “index.php”, and the extension is somehow losing the main/ section of my URLs.  Is there somewhere in the extension where I can just add main/ and have it included in the redirect page?

EDIT: I should mention… the redirect works perfectly on a logout, but it forgets the /main/ when logging in.

EDIT 2: Ok, looks like I was able to hack a solution.  For the time being, I’ve commented out the whole section of the extension that deals with the login process.  To handle the login redirect, I’m just using this:

{exp:member:login_form return="{segment_1}/{segment_2}/{segment_3}/{segment_4}"
Profile
 
 
Posted: 23 June 2010 05:45 PM   [ Ignore ]   [ # 75 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  175
Joined  08-13-2007

@James Likeness, this way we still see the EE redirect login page though.

I wish the extension was updated.

Profile
 
 
Posted: 23 June 2010 10:51 PM   [ Ignore ]   [ # 76 ]  
Summer Student
Total Posts:  13
Joined  11-22-2009
deckard97 - 23 June 2010 09:45 PM

@James Likeness, this way we still see the EE redirect login page though.

I wish the extension was updated.

Correct, but if you use this for your login form code, you can return to your current page:

{exp:member:login_form return="{segment_1}/{segment_2}/{segment_3}/{segment_4}"
Profile
 
 
Posted: 23 June 2010 11:21 PM   [ Ignore ]   [ # 77 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  175
Joined  08-13-2007

Yes, tried it.
Good as a workaround for now. Thanks.

Profile
 
 
Posted: 30 June 2010 09:33 AM   [ Ignore ]   [ # 78 ]  
Grad Student
Avatar
Rank
Total Posts:  37
Joined  04-10-2008

Hello everyone, apologies for the slow response on the index.php issue.  We are working on a fix for this in the next couple of weeks, and will release updates for both 1.6/2.0.  I’ll post here when it’s up!

 Signature 

ExpressionEngine Addon Development and Performance Research

Profile
 
 
Posted: 11 July 2010 10:30 PM   [ Ignore ]   [ # 79 ]  
Grad Student
Rank
Total Posts:  50
Joined  11-23-2007
Ryan J. Bonnell - 13 May 2009 03:20 PM

Is there a way using this extension to have it ignore specific login forms?

I’m developing a site where I’m using two different Login Forms to redirect users to a destination (Admins get redirected after login to /accounts, while Members get sent to another template group, /reports).

For example, with this extension enabled, it seems to overwrite the “return” parameter of all login forms, even when using the Login Form Tag with a custom return parameter set. When the extension is disabled, the return parameters are honored on all login forms.

What I’d love to see as a feature request is more granular control over what Login Forms get overwritten, instead of an all-or-nothing approach. Perhaps a setting could be developed to overlook/ignore login form on specific templates?


I’m having the same problem. I have an “admin” login and a “member” login and I can’t separate the “login return” so it makes it impossible for admins to log in.

I would love to see this feature added somehow. I think member groups would work great for this.

Profile
 
 
   
5 of 5
5