Page MenuHomePhabricator

Site links on Special:MergeAccount all link to same domain
Closed, ResolvedPublic


All the site links on Special:MergeAccount:

link to my user page on They should link to the sites they are listing, eg '' or '' etc.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:21 AM
bzimport set Reference to bz48264.
brion created this task.May 8 2013, 5:43 PM
Reedy added a comment.May 8 2013, 5:49 PM

Line 459 onwards of SpecialMergeAccount.php is at fault

See 466 where it's always a local title object:

		$userPageName = Title::makeTitleSafe( NS_USER, $this->mUserName );
		return Xml::element( 'a',
				'href' => $userPageName->getFullUrl(),
				'title' => $this->msg( 'centralauth-foreign-link',
					$hostname )->text(),
			$hostname );
Reedy added a comment.May 8 2013, 5:50 PM

Vs SpecialCentralAuth.php

		$wikiname = $wiki->getDisplayName();
		return $this->foreignLink(
			'User:' . $this->mUserName,
			$this->msg( 'centralauth-foreign-link', $this->mUserName, $wikiname )->text() );

Related URL: (Gerrit Change If2c59da4342e0a149b775b4588353eff0106a708)

Caused by Gerrit change 52337

Fixed in master by Reedy's code.