?
avatar skurvish
skurvish
8 Nov 2015

Steps to reproduce the issue

I upgraded my joomla installation to 3.4.5 from 3.4.1. Now, when the site is accessed via a url in an email (such as a Kunena post) and where the user is not currently logged in, the login redirects to the users profile page and not to the return url.

I have tracked the problem down to a change made to com_user around line 44 where the return is tested with JUri::isInternal. Somehow the return url is missing the slash after the sitename.

The URL used to access the site is:http://192.168.0.219/index.php?option=com_kunena&view=topic&catid=18&id=565&Itemid=302#885

When the login form is presented the Base64 decoded return value in the login form is: http://192.168.0.219?option=com_kunena&view=topic&catid=18&id=565&Itemid=302

When com_user makes the call to JUri::isInternal it sends this Base64 decoded value. Inside isInternal the function calculates the base of the url to be http://192.168.0.219 but the static::base() function call returns http://192.168.0.219/ with the slash at the end so the comparison fails so the return is discarded.

The 3.4.2 update to com_user is where this change was inserted.

I can comment out the test and it works for now but there is something wrong. I hope this is the correct place to post this issue.

Thanks.

Expected result

Actual result

System information (as much as possible)

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar skurvish skurvish - open - 8 Nov 2015
avatar zero-24 zero-24 - change - 9 Nov 2015
Category Front End
avatar skurvish
skurvish - comment - 18 Nov 2015

Nobody??

avatar skurvish
skurvish - comment - 3 Dec 2015

Really, nobidy??

avatar conconnl
conconnl - comment - 27 Jun 2016

Is this still happening in the 3.6 beta 2 version?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8344.

avatar Basstrup
Basstrup - comment - 8 Jul 2016

In a plain 3.6.0 rc2 install I have log out doesn't go to the url set in the module settings. I have set log out to Main Menu > Home - when loging out it stays on the page I log out from.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8344.

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Aug 2016

does this still happens on 3.6.2 ?

avatar brianteeman brianteeman - change - 22 Aug 2016
Status New Information Required
avatar brianteeman
brianteeman - comment - 25 Aug 2016

I am closing this due to inactivity and the code referred to has changed a lot since this was posted


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8344.

avatar brianteeman brianteeman - change - 25 Aug 2016
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2016-08-25 13:01:59
Closed_By brianteeman
avatar brianteeman brianteeman - close - 25 Aug 2016

Add a Comment

Login with GitHub to post a comment