By Dennis Buijs on Thursday, 24 December 2015
Posted in Technical Issues
Likes 0
Views 2.4K
Votes 0
Hi

I have configured in the module the login and logout redirect but this is not working.
Login is going to the profile (/component/users/profile) and logout is going to the home page.

Best regards
Dennis
Hey Marco,

Edit the file /components/com_easydiscuss/controllers/controller.php and locate the codes below


$return = JRequest::getURI();


Replace it with,

[code type="php']
$return = JUri::getInstance()->toString();
[/code]
·
Wednesday, 06 January 2016 01:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Please update your Joomla to 3.4.7 and after that purge the cache There was a bug in 3.4.6 causing redirection to fail.
·
Thursday, 24 December 2015 16:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

I can now reply to this formum item, have changed into EasyDiscuss :-)

I found the problem and for myself also the solution. I read about the problem of Joomla redirect and found out that the return url must be a internal url and NON SEF.

In the file mod_easydiscuss_welcome\helper.php i saw the use of JRoute, which causing the url to be SEF urls. I have changed this lines without JRoute and now it is working.

So, for me it is the solution, and I think this is the correct way to handle return urls.

Best regards
Dennis
·
Friday, 25 December 2015 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Dennis,

Updating to 3.4.7, should resolve your issue You should use JRoute for return urls because otherwise your urls wouldn't be sef.
·
Saturday, 26 December 2015 17:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

I understand what you mean, in my case and maybe also in other cases, my url after redirect are still SEF URLS, they are translated before redirect somewhere in the user component.

I found a lot of discussion about using NON SEF urls for the return url, so i don't know for sure if there is still a bug in Joomla not correct handling SEF urls as a return url.
(https://github.com/joomla/joomla-cms/issues/8689)

Best regards
Dennis
·
Saturday, 26 December 2015 18:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Dennis,

It seems like in 3.4.8, the login module is not using JRoute any longer The code snippet below is being extracted from mod_login/helper.php



Looks like we need to alter all the return urls (( What a gift for Christmas
·
Sunday, 27 December 2015 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Guys, have latest J! Version and also EasyDiscuss.
Have the same problem with redirect.
what to do?
·
Tuesday, 05 January 2016 17:13
·
0 Likes
·
0 Votes
·
0 Comments
·
+1 here. Interested in hearing a potential solution.
·
Wednesday, 06 January 2016 04:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Please see the accepted answer above Eric
·
Wednesday, 06 January 2016 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
So, to be clear Mark, your comment about altering return URLs when using Joomla 3.4.8 is no longer applicable? I assumed that since you said that after the accepted answer was given that perhaps there was something else yet to come.
·
Wednesday, 06 January 2016 12:05
·
0 Likes
·
0 Votes
·
0 Comments
·
This is why I request users to start a new thread because it get's extremely confusing when everyone has something to say.

The accepted answer above is to fix the return redirection with EasyDiscuss with Joomla 3.4.8
·
Wednesday, 06 January 2016 12:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, Mark. I understand. Sorry for adding to the confusion.
·
Wednesday, 06 January 2016 12:29
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem, please do start a new thread on our forum if you are having any more issues.
·
Wednesday, 06 January 2016 12:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post