fbpx
Forum is closed

Returning User Redirect Not Hitting Expected Page

Returning User Redirect Not Hitting Expected Page

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?

joeadl
Joe
useravatar
Offline
70 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Returning User Redirect Not Hitting Expected Page

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:

Code:

            $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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24428 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Returning User Redirect Not Hitting Expected Page

Thanks Alex. This will do the trick in the mean-time!

joeadl
Joe
useravatar
Offline
70 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Returning User Redirect Not Hitting Expected Page

Sounds good. Again, it's a task for us to look into, but I think you're covered for now!

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24428 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11859
Total Polls:
0
Total Posts:
49712
Posts this week:
6
User Info
 
Total Users:
48457
Newest User:
DavidZX
Members Online:
1
Guests Online:
1268

Online: 
JurrienPhilips
Social Stream
Hide, Seek & Defuse

Handheld Electronic Game

Alex from SourceCoast is working on a new electronic game for kids called Countdown. It's a timed game of Hide & Seek with mini-games (Whack-a-Mole, Simon, etc) to complete when you find it.

Hide and Seek Toys

Before You Leave

Let us send you a 10% off coupon

For Your Next Purchase

Please enable the javascript to submit this form

No , I don't want a discount