Last modified: 2014-02-12 23:35:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 44334 - Distinguish somehow between preview and diff on action=submit
Distinguish somehow between preview and diff on action=submit
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.21.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks: javascript
  Show dependency treegraph
 
Reported: 2013-01-25 05:23 UTC by Danny B.
Modified: 2014-02-12 23:35 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Danny B. 2013-01-25 05:23:15 UTC
action=submit and therefore wgAction = 'submit' is now used for previewing the new content as well as to see the diff.

There are various gadgets, which are useful for preview but completely useless on diff (or vice versa), but take resources, sometimes even interact incorrectly because of no easy way to distinguish between the real *actions*.

Changing the value of wgAction to proper one or add another variable (wgSubAction? ;-)) should not be an issue.

The question is, if it is feasibly solveable also on URL level.
Comment 1 Bartosz Dziewoński 2013-01-25 13:09:17 UTC
> The question is, if it is feasibly solveable also on URL level.

The answer here is 'no'. This is simply how HTML POST form submission works – you can't change the URL from the form, only the data sent. We could use some JS hacks, of course, but it's not really a good solution.


> There are various gadgets, which are useful for preview but completely
> useless
> on diff (or vice versa), but take resources, sometimes even interact
> incorrectly because of no easy way to distinguish between the real *actions*.

> Changing the value of wgAction to proper one or add another variable
> (wgSubAction? ;-)) should not be an issue.

While this is probably feasible, IMO the real solution would be the introduction of mw.hooks (bug 23580, bug 30713, and their blocked bugs). Bear in mind that you can also have preview/diff without reloading the page, using the 'live preview' feature you can enable in prefs or one of the dozens gadgets out there that do the same.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links