Page MenuHomePhabricator

Change the Wikifunctions insert dialog link to open in a new tab
Closed, ResolvedPublic

Description

Steps:

  • In VE click on Insert, select Wikifunciton option
  • In the insert function dialog, click on the link "Funciton from Wikifuncitons"

<span class="ext-wikilambda-app-function-input-setup__link"><a title="F:Z10000" href="/wiki/F:Z10000">Function</a> from Wikifunctions</span>

  • The warning appears alerting users they are about to leave a page:

Screen Shot 2025-04-22 at 5.18.39 PM.png (1×1 px, 320 KB)

Note:

  • all other links that redirect to wikifunctions, work as expected, i.e. a new tab will open.

Event Timeline

@DSmit-WMF - I checked links in the insert template dialog. On the screenshots below all links in the template dialog will open a new tab.

Screenshot 2025-12-03 at 5.02.57 PM.png (1×1 px, 247 KB)

Another thing I noticed when re-checking this ticket on testwiki wmf.5 - the Console error Uncaught (in promise) ApiError: Request was aborted is displayed when anything is typed in the cdx-text-input__input, the search text field for wikifunctions:

Screenshot 2025-12-03 at 5.09.44 PM.png (1×2 px, 385 KB)

Each new attempt to type will trigger the same error as above.

I have addressed this in a patch (both) coming up

Change #1215136 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] Open external link in a new tab in the VisualEditor function input setup

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

DSmit-WMF changed the task status from Open to In Progress.Dec 4 2025, 12:23 PM
DSmit-WMF claimed this task.
Jdforrester-WMF renamed this task from Wikifunction insert dialog link opens in the same tab to Change the Wikifunctions insert dialog link to opens in a new tab.Dec 9 2025, 4:50 PM
Jdforrester-WMF renamed this task from Change the Wikifunctions insert dialog link to opens in a new tab to Change the Wikifunctions insert dialog link to open in a new tab.

Change #1215136 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Open external link in a new tab in the VisualEditor function input setup

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