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
23821 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
23821 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:
11504
Total Polls:
0
Total Posts:
48422
Posts today:
8
User Info
 
Total Users:
47475
Newest User:
micaiz1
Members Online:
7
Guests Online:
686

Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program