Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.4
-
Fix Version/s: 4.6.5
-
Component/s: CiviContribute, CiviEvent, Joomla Integration
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Core Team Funds
Description
I've implemented user accounts during Event registration by enabling the profile's advanced settings to give the user the option to create a Joomla account.
When a user registers for an event, they are correctly offered the chance to sign-up or login:
If you would like to create an account on this site, check the box below and enter a Username and a password. If you already have an account please login before completing this form.
The 'login' word above is hotlinked to a page which allows the user to login and then CiviCRM should return the user back to the Event Registration page. It does not - after logging in, the user just gets a blank page.
The reason seems to be that the redirect page is malformed; it is:
/index.php?option=com_civicrm&task=civicrm/event/register&reset=1&id=60
when it should be:
/index.php?option=com_civicrm&task=civicrm/event/register&reset=1&id=60
The & concatenators in the URL are being incorrectly escaped.
I have reported this on StackExchange:
http://civicrm.stackexchange.com/questions/3829/redirect-back-to-event-registration-after-login-fails
including my own answer that suggests that the root cause is the coding of the return link in this URL when taking a user to the login page:
http://joomla.demo.civicrm.org/index.php?option=com_users&view=login&return=aHR0cDovL2pvb21sYS5kZW1vLmNpdmljcm0ub3JnL2luZGV4LnBocD9vcHRpb249Y29tX2Npdmljcm0mYW1wO3Rhc2s9Y2l2aWNybS9ldmVudC9yZWdpc3RlciZhbXA7cmVzZXQ9MSZhbXA7aWQ9OA%3D%3D
Similar behaviour has also been reported in the Contributions process here:
http://civicrm.stackexchange.com/questions/3033/return-after-login-going-through-contribution-flow-doenst-bring-up-contribution
Problem has been re-produced on the Joomla Demo site.