Page MenuHomePhabricator

Escaped HTML is displayed instead of a link in the Wikimedia Incubator Getting started wizard
Closed, ResolvedPublic

Description

This translation has issue in the user page link at https://incubator.wikimedia.org/wiki/Special:IncubatorFirstSteps. It displays:
"Please now create your userpage <a href="/wiki/User:Example" title="User:Example">Example</a> with some basic info about yourself. You can also see a link to it at the top of this page."
("Example" is an username) with an error. More details can be found at screenshot below.

Incubatorerror.PNG (593×1 px, 50 KB)

To reproduce yourself:

Observe: The step "Create your userpage" shows escaped HTML.


Message URL: https://translatewiki.net/w/i.php?title=Special:Translate&showMessage=wminc-fs-userpage-text&group=ext-wikimediaincubator

Event Timeline

MarcoAurelio subscribed.

Looks like it's not a message issue but a coding one.

$link = $linkRenderer->makeLink( $this->getUser()->getUserPage(), $this->getUser()->getName() );

Is missing the local server name apparently?

Would this work?

$link = $linkRenderer->makeLink( $this->getSourceURL()->getUserPage(), $this->getUser()->getName() );

Or use makeKnownLink instead of makeLink.

Amire80 renamed this task from [[MediaWiki:Wminc-fs-userpage-text/en]] translation issue to Escaped HTML is displayed instead of a link in the Wikimedia Incubator Getting started wizard.Feb 15 2022, 9:09 AM
Amire80 updated the task description. (Show Details)

Change 764721 had a related patch set uploaded (by Jon Harald Søby; author: Jon Harald Søby):

[mediawiki/extensions/WikimediaIncubator@master] Fix escaped HTML showing on Special:IncubatorFirstSteps

https://gerrit.wikimedia.org/r/764721

Change 764721 merged by jenkins-bot:

[mediawiki/extensions/WikimediaIncubator@master] Fix escaped HTML showing on Special:IncubatorFirstSteps

https://gerrit.wikimedia.org/r/764721

Marking as resolved; the change should appear on Incubator on Wednesday next week.