We added a fix into ipb.js for a problem with the Facebook integration, the following code:
/**
* @link http://community.invisionpower.com/tracker/issue-23320-status-updates-hook-breaks-under-certain-circumstances/
*/
var _requestedHost = location.protocol + '//' + location.host;
/* Without www */
if ( _requestedHost.match( /^http:\/\/www/ ) && !ipb.vars['base_url'].match( /^http:\/\/www/ ) )
{
ipb.vars['base_url'] = ipb.vars['base_url'].replace( /^http:\/\//, 'http://www.' );
ipb.vars['board_url'] = ipb.vars['board_url'].replace( /^http:\/\//, 'http://www.' );
}
/* With www */
if ( ipb.vars['base_url'].match( /^http:\/\/www/ ) && !_requestedHost.match( /^http:\/\/www/ ) )
{
location.href = location.href.replace( /^http:\/\//, 'http://www.' );
}