ALTER TABLE `YYY_jfbconnect_notification` ADD COLUMN `destination_url` VARCHAR(200);data = jfbcRequests[jfbcReqId]; <-- This line is already here
jfbc.request.destinationUrl = data.destinationUrl; <-- add thisvar query = 'option=com_jfbconnect&controller=request&task=requestSent&requestId=' + rId + toQuery + '&jfbcId=' + jfbc.request.currentId + '&destinationUrl=' + jfbc.request.destinationUrl;$data['destination_url'] = JRequest::getString('destinationUrl');var $destination_url = null;function getRedirect()
{
$query = "SELECT n.destination_url nDestinationUrl, r.destination_url rDestinationUrl, breakout_canvas FROM #__jfbconnect_request r INNER JOIN #__jfbconnect_notification n ON r.id = n.jfbc_request_id " .
" WHERE n.fb_request_id IN (" . implode(', ', $this->_fbRequestIds) . ") ORDER BY n.created DESC LIMIT 1";
$this->_db->setQuery($query);
$data = $this->_db->loadObject();
$redirectInfo = new stdClass();
$redirectInfo->breakout_canvas = $data->breakout_canvas;
if ($data->nDestinationUrl)
$redirectInfo->destination_url = $data->nDestinationUrl;
else
$redirectInfo->destination_url = $data->rDestinationUrl;
return $redirectInfo;
}OK I found out the problem with a javascript error in firebug :alzander wrote: There was a Javascript change above, and it sounds like that's not taking effect. That javascript is what sends the destination_url back to JFBConnect to store with each notification that is sent, and then is used later when the user accepts the request.
var query = 'option=com_jfbconnect&controller=request&task=requestSent&requestId=' + rId + toQuery + '&jfbcId=' + jfbc.request.currentId + '&destinationUrl=' + encodeURIComponent(jfbc.request.destinationUrl);$destination_url = JRequest::getString('destinationUrl');
$data['destination_url'] = urldecode($destination_url);alzander wrote: We'll have to investigate the iPhone thing. Not sure why that isn't working. Can you let me know if you're seeing the "Unable to redirect" message after the Request is sent by a user to his friends, or if it's when a user accepts a Request sent to him. Couldn't quite tell how you were testing.
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
