× Joomla LinkedIn support forum

Topic-icon Returning User Redirect Not Hitting Expected Page

Active Subscriptions:

None
11 years 4 months ago #28364 by joeadl
I've added a new task to the Jomsocial Profile Controller. This task can be viewed by going to (index.php?option=com_community&view=profile&task=dashboard). I would like to have JLinked redirect to this task after login so I created an external link menu item to it. However when I login I get (/component/community/dashboard) instead of (index.php?option=com_community&view=profile&task=dashboard) and a 500 error. What would cause this/what is the best way to fix this?
The topic has been locked.
Support Specialist
11 years 4 months ago #28511 by alzander
Joe,
I've added a tracker issue for us to investigate External URLs more and see what's going wrong. Something you can do in the meantime is edit the /components/com_jlinked/models/loginregister.php file. At line 69, you'll see the getLoginRedirect function. There are a few if statements in there. At the end of the block you want, simply change the $redirect variable to:
$redirect = JRoute::_('index.php?option=com_community&view=profile&task=dashboard', false);
The first block is for new user registrations. The second block is for logins. The third block is if you have JLinked configured to leave the user on the same page they logged in on (not what you have, it seems).

Again, we'll try to figure out what's going wrong for the next release, but hard-coding what you want for now is probably the best choice.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #28601 by joeadl
Thanks Alex. This will do the trick in the mean-time!
The topic has been locked.
Support Specialist
11 years 4 months ago #28621 by alzander
Sounds good. Again, it's a task for us to look into, but I think you're covered for now!

Thanks,
Alex
The topic has been locked.