Thread:Extension talk:OpenID/Unable to log in when using Coral CDN

I'm unable to log in when I access my wiki via Coral CDN: Since the Login with OpenID link is relative, it points to the CDN instead of pointing to the original server.

So, where can I change the Login with OpenID link so that it always points to the right URL, even if the wiki is being accessed via a CDN ?

--Elifarley 12:52, 29 March 2011 (UTC)


 * I've created a hook to fix this (just append it to LocalSettings.php):

function fnMakeAbsoluteURL( &$title, &$url, $query ) { global $wgServer; $indexRe = "/title.Special.*Login/"; if ( preg_match( $indexRe, $url ) ) $url = $wgServer. $url; return true; }

$wgHooks['GetLocalURL'][] = 'fnMakeAbsoluteURL';

--Elifarley 13:44, 14 April 2011 (UTC)