Page MenuHomePhabricator

Wikilinks from transcluded user pages are parsed for Meta (e.g. blue), but rendered as relative url to local wiki where it might not exist
Open, Needs TriagePublic

Description

Links on global user pages point to the local wiki, and doesn't exist, but appear as blue without action=edit&redlink=1

See e.g. https://ca.wikibooks.org/wiki/Usuari:Ricordisamoa has a link pointing to https://ca.wikibooks.org/wiki/User:Ricordisamoa/JavaScript_task_force appearing as blue/existing, but isn't.

Related: T89916: Wikilinks from global user pages should point to the central wiki

Event Timeline

Se4598 created this task.Feb 19 2015, 9:41 AM
Se4598 raised the priority of this task from to Needs Triage.
Se4598 updated the task description. (Show Details)
Se4598 added a project: GlobalUserPage.
Se4598 added subscribers: Se4598, Ricordisamoa.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 19 2015, 9:41 AM

I suppose they're parsed on the central wiki as relative URLs and sent to local wikis as such, that's because they appear blue.
If https://gerrit.wikimedia.org/r/191533 makes links relative to the central wiki, the problem described here won't happen anymore, will it @Legoktm?

Base added a subscriber: Base.EditedFeb 19 2015, 10:10 PM

I created T90015 about marking the links somehow. Perhaps it happens to be a duplicate of this one but I'm not 100% sure as didn't get what this task's result should be, feel free to merge them if needed.

He7d3r added a subscriber: He7d3r.Feb 22 2015, 4:27 PM
Krinkle renamed this task from Links on GUP pointing to local pages that doesn't exist, appear blue to Wiki links on transcluded pages should not be relative to local wiki (appear blue but may not exist).EditedFeb 24 2015, 12:31 PM
Krinkle set Security to None.
Krinkle added a subscriber: Krinkle.

This is because they by the central wiki (so e.g. {{fullurl}} would expand to Meta-Wiki) but included as raw html locally, which violates the contract and expectation with the parser run, and causes links like <a href="/wiki/Foo" title="Foo">Foo</a> to not work as expected.

I wonder how we handle this for file description pages.

On https://test2.wikipedia.org/wiki/User:Krinkle, for example, various links (many of which are transcluded from Meta-Wiki userbox templates) point at a non-existent page. Such as "System administrator", "CVN" or "IRC". As well as Babel links such as "User language" and references to user categories.

@Krinkle the way you titled this task makes it seem a duplicate of T89916: Wikilinks from global user pages should point to the central wiki, which it isn't.

Krinkle renamed this task from Wiki links on transcluded pages should not be relative to local wiki (appear blue but may not exist) to Wikilinks from transcluded user pages are parsed for Meta (e.g. blue), but rendered as relative url to local wiki where it might not exist.Feb 25 2015, 10:54 PM

@Ricordisamoa How is it not a duplicate?

The use case is different but I think the intended outcome is the same.

This task reports a bug: Local user page uses HTML meant for Meta-Wiki. As such, it uses relative urls that now point ot the local wiki instead of Meta. And as result links to pages that don't exist are blue instead of red.
Solution for this bug: Make urls expanded when parsed on Meta for local transclusion by GlobalUserPage.

Task T89916 requests a feature: We want wiki links to point to Meta-Wiki so that existing user pages on Meta work the same way as they did before and not require the users to change all their links to be absolute.
Solution: Make urls expanded so that they are absolute to Meta.

@Krinkle The author of this task knew the other one, but created this one to describe a different perspective (I think).
Of course if T89916 gets fulfilled this one wouldn't make sense anymore.