Page MenuHomePhabricator

Loading an edit page using veaction=edit in single-tab mode changes URL to an incorrect state
Closed, ResolvedPublic

Description

  1. Be logged out of VE, or otherwise in single-tab mode
  2. Visit https://en.wikipedia.org/wiki/User:Whatamidoing_(WMF)/sandbox?veaction=edit
  3. Note the URL changing to https://en.wikipedia.org/wiki/User:Whatamidoing_(WMF)/sandbox?veaction=edit&action=edit
  4. Reload the page
  5. Find you're now on the non-VE version instead

The likely vector of this happening would be someone else sharing a link, since if you're in single-tab mode the links we generate will be in the action=edit form already.

Event Timeline

DLynch renamed this task from Loading an edit page while logged out changes to URL to an incorrect state to Loading an edit page using veaction=edit in single-tab mode changes URL to an incorrect state.Nov 9 2018, 5:31 PM
DLynch updated the task description. (Show Details)

This wrong behaviour is present in the three modes (other than the mode "two buttons") when wgVisualEditorUseSingleEditTab is true.

It should be modified around here, probably by adding a stronger condition than if( mw.libs.ve.isSingleEditTab ).

JTannerWMF triaged this task as Medium priority.Nov 20 2018, 4:11 PM
JTannerWMF moved this task from To Triage to Bug Fixes on the VisualEditor board.

Change 526557 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] ve.init.mw.DesktopArticleTarget: Fix generated URL when loaded using veaction=edit in single-tab mode

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

Change 526557 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] ve.init.mw.DesktopArticleTarget: Fix generated URL when loaded using veaction=edit in single-tab mode

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