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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46334, the corresponding Phabricator task for complete and up-to-date bug report information.
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