Page MenuHomePhabricator

Pasted external links are not converted to hyperlinks with VisualEditor
Closed, DuplicatePublic

Description

In the past, internal and external links pasted into VisualEditor were automatically converted into hyperlinks.

Recently, external links stopped being converted and remain as plaintext.

This started happening a week or so ago and occurs across browsers and devices.

I have been running MediaWiki 1.31.1 since November, so I'm not sure what (if anything) has changed, or if I'm crazy.

I'm unable to reproduce this on the main Wikipedia site or test2.wikipedia.org. Those instances have the same behavior that I desire.


https://www.youtube.com/watch?v=dHe7nWx9Z-U

Right now, I've "solved" this on my instance with some JS in MediaWiki:Common.js that removes link/mwExternal from ve.init.mw.Target.static.importRules.external.blacklist, but I'd like to know if there is a better solution.

mw.hook('ve.activate').add(function() {
    ve.init.mw.Target.static.importRules.external.blacklist.shift();
});

This ticket may be related: https://phabricator.wikimedia.org/T129546

Versions

MediaWiki1.31.1
PHP7.2.12 (apache2handler)
MariaDB10.3.13-MariaDB-1:10.3.13+maria~bionic
ICU57.1
Parsoid0.9.0
VisualEditor0.1.0 (6854ea0) 15:33, 5 November 2018