Page MenuHomePhabricator

VisualEditor adds link= attribute to file transclusion if lang= parameter is set
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The file transclusion of [[Datei:TUWien dwh.at Covid Intensity.svg|lang=de|mini|Simulationsmodell von [...]]] (Datei: is German namespace name for File:) gets appended with |verweis=Datei:TUWien_dwh.at_Covid_Intensity.svg%3Flang=de (verweis= is German l10n of link=)

What should have happened instead?:
no change in file transclusion

Other information (browser name/version, screenshots, etc.):
Similar changes, all affecting svg files with lang attribute:

Event Timeline

Additional info: This is not limited to SVG files, it also happens for PDFs when given a page=xx parameter. Example:

Thanks for the report. This may be a regression from the recent work on T325766 or T324352.

It looks like it's already fixed in the latest version, following the work on T325249. The fix should be deployed to Wikimedia wikis later this week.

Sorry about that :(

Thanks for having a look on this, we will check on thursday if there's still a problem.

Looks like the fix/update worked, I currently cannot reproduce the bug on de german Wikipedia.

matmarex removed a project: Verified.

The fix was reverted due to revealing issues in ContentTranslation: T328143. Hopefully we'll find a better solution for that and reinstate this soon.

Change 884502 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Re-apply "Rewrite mw.libs.ve.getTargetDataFromHref with URL API"

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

Change 884502 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Re-apply "Rewrite mw.libs.ve.getTargetDataFromHref with URL API"

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

The fix will be deployed again next week, on the usual schedule. Sorry about that, it's impractical to backport due to dependencies on other software.

If you need help fixing the damage to articles afterwards, please say and I will do my best.