Login Redirection Page in Login module not working

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
bongobongo
Joomla! Explorer
Joomla! Explorer
Posts: 349
Joined: Mon Dec 15, 2008 11:10 am

Login Redirection Page in Login module not working

Post by bongobongo » Thu Mar 01, 2012 1:20 pm

UPDATE:
I got this to work now...
The weird thing is that I only changed then link from:
http://secret-domain.no/index.php/compo ... view=login

to an URL pointing to a menuitem which is only available for registered users.
That is... the URL points to a menuitem not visible.
Looks like Joomla display another login form now or add some hidden elements to the form...

UPDATE END

Hi

I'm using the Log in module and have set it so it should redirect to a page after login.
In my case I'm trying to redirect the user to a menuitem (URL) which is only visible for registered, by selecting that menuitem, using the "Login Redirection Page" select in the Login module.

To be able to log in, I have made a normal link and placed that below all the content.
The url to the login is like this:

Code: Select all

http://secret-domain.no/index.php/component/users/?view=login
Clicking the above URL show the log in form.
After logging in, this is where the user is taken:

Code: Select all

http://secret-domain.no/index.php/component/users/profile
Why is the user directed to user profile page instead of the page I have explicitely defined in the Loginmodule in the backend?

Is it a bug, or have I missed something?

Using version: 2.5.1
Last edited by bongobongo on Mon Mar 05, 2012 11:41 am, edited 1 time in total.

User avatar
shakur1911
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Tue May 06, 2008 12:28 pm

Re: Login Redirection Page in Login module not working

Post by shakur1911 » Thu Mar 01, 2012 1:36 pm

Hello bongobongo,

What type is your menu item you are trying to redirect the user?
I am using J2.5 as well and it works for me.

When you click on your menu item where does it go?

bongobongo
Joomla! Explorer
Joomla! Explorer
Posts: 349
Joined: Mon Dec 15, 2008 11:10 am

Re: Login Redirection Page in Login module not working

Post by bongobongo » Thu Mar 01, 2012 1:45 pm

The menu item type of the menuitem I have set the Login module to redirect to are:

Articles » Single Article

The menu item is within the main menu on the site in question.
But as I mentioned earlier, it is only visible for registered visitors (those that are logged in)...
I also tried to see if it made any difference if I set access for the menuitem to public.... but nope... same happens... redirect go to the user profile page.

User avatar
shakur1911
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Tue May 06, 2008 12:28 pm

Re: Login Redirection Page in Login module not working

Post by shakur1911 » Thu Mar 01, 2012 1:51 pm

The fact that the link is only for registered members shouldn't make any difference since you are logging in anyway...

Question was: what happens when you click on the menu item from the menu item (i.e., does the menu item when you click on it (not when redirecting from module) sends you to the right article)

Is it by any chance outdated?

It is really hard to help without access or a link to the problem

bongobongo
Joomla! Explorer
Joomla! Explorer
Posts: 349
Joined: Mon Dec 15, 2008 11:10 am

Re: Login Redirection Page in Login module not working

Post by bongobongo » Thu Mar 01, 2012 1:56 pm

Hi

Yes.. the menuitem itself is working as it should.
Correct page showing up as it should, when menuitem clicked!

cvoogt
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Wed Sep 27, 2006 1:10 am
Location: Sterling, VA, USA
Contact:

Re: Login Redirection Page in Login module not working

Post by cvoogt » Sun Mar 18, 2012 5:45 pm

Same problem here, except I am pointing the login redirection URL to the default menu item, which is public. Running Joomla 2.5.3 without SEF on (for now) due to issues with multilingual SEF. Thinking of changing to the CommunityBuilder login module instead.

Bryan Hix
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Jul 01, 2012 1:16 am

Re: Login Redirection Page in Login module not working

Post by Bryan Hix » Sun Jul 01, 2012 1:49 am

Same problem with ver2.5.6. The Logout Redirection Page works fine. The Login Redirection Page only goes to user Profile page. No matter which page I choose in the module.

GatsbyCat
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Tue Sep 14, 2010 3:33 pm

Re: Login Redirection Page in Login module not working

Post by GatsbyCat » Sun Jul 08, 2012 8:13 pm

I have the same problem in ver 2.5.6. Login from the login MODULE goes to the configured redirect page no problem. However, if one logs in from mydomain.com/index.php/component/users/?view=login then after a successful login they are taken to the user profile: mydomain.com/index.php/component/users/profile

Rooting through the forum it seems like this as been a problem for some time.
Here is discussion from 2008: http://forum.joomla.org/viewtopic.php?f=579&t=551330
And here is a bug report discussion where issue looked like it was going to be fixed in 2010: http://joomlacode.org/gf/project/joomla ... m_id=22667

I have tried to make code fixes suggested in the above or look at the changes in the "patches" for issue 22667 but am not at all expert in php and just end up giving myself "invalid token" errors. Can someone help with details on how to patch up Joomla 2.5.6 to fix this problem? Many thanks!

y021ahe
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sat Apr 21, 2012 9:56 am

Re: Login Redirection Page in Login module not working

Post by y021ahe » Sun Jul 15, 2012 10:25 am

Hi - I am experiencing the same problem and have worked around it

http://forum.joomla.org/posting.php?mod ... 4&t=729718

Have a look at the enclosed Forum post - see if it could help you ?

Thanks
Rich

GatsbyCat
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Tue Sep 14, 2010 3:33 pm

Re: Login Redirection Page in Login module not working

Post by GatsbyCat » Fri Jul 20, 2012 8:33 pm

I have fixed it, by creating a login menu item in a hidden menu and setting the redirects in the configuration for that menu item. Thanks!

libby
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 215
Joined: Mon Oct 31, 2005 1:01 pm

Re: Login Redirection Page in Login module not working

Post by libby » Thu Jul 26, 2012 8:47 am

I have tried this - creating a login form menu item and configuring the login redirect - but users are still sent to the user profile page after login.

Any advice?
I am using 2.5.6

jasonb4
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Mar 16, 2007 12:26 am

Re: Login Redirection Page in Login module not working

Post by jasonb4 » Wed Apr 03, 2013 5:16 pm

Simple fix in the end. I'm using sh404sef and it was trying to push to Log-In.html so i let that url stand in sh404 and just wrote a htaccess redirect vs. using an alias. (alias gave me a horrible redirect loop.

Code: Select all

redirect 301 /Log-in.html https://www.domain.com/desired-page
note: the https is because my site redirects to secure on login.

couldn't get the system to redirect properly using the module so i just forced with .htaccess. hope this helps someone


Locked

Return to “Administration Joomla! 2.5”