Page MenuHomePhabricator

Add parameter(s) for UploadWizard to redirect to target page after upload
Open, LowestPublic

Description

Author: flominator

Description:

A parameter like &returnto=URL could be added to UploadWizard so that the user, when upload is completed, is redirected to that URL, or even to the edit window.

For instance, https://commons.wikimedia.org/wiki/Special:UploadWizard?returnto=https://it.wikipedia.org/wiki/I._liga could link https://it.wikipedia.org/w/index.php?title=I._liga&action=submit prefilled with the current of the page, prepended with the image markup like [[File:Example.jpg|Example description]].

User story: Like mentioned in bug 33234 it is easy for the a potential upload to find the wizard, but often he won't be able to include his picture to the article.

I suggested at different approach here: http://commons.wikimedia.org/w/index.php?title=Commons%3AVillage_pump&diff=92525244&oldid=92523839

What about some additional get parameters like project, language and page/article when you link to upload wizard from an article?

This would offer a lot of potential workflow improvement:

  1. You could use those parameters to create a link to the article the user called upload wizard from. You could write: "Now insert [[:File:.....|thumb|....]] to this article.
  1. You could even link to editing the article and inserting the file source code (maybe by asking him the paragraph he wants to insert the image at?)

A different handling for infoboxes would be great, since there are a lot of infoboxes, that use the image as parameter.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=33234

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:24 AM
bzimport added a project: UploadWizard.
bzimport set Reference to bz46242.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #1)

+1

There's a vote button up there for that :)

flominator wrote:

Has this to be done server side within the extension or is there a chance to do is in javascript without having to modify the extension?

Tgr lowered the priority of this task from Medium to Lowest.Mar 20 2015, 8:31 PM
Tgr added a subscriber: Tgr.

T91717 is a better approach for making it easy to add images to articles. That said, this would be pretty easy to do.

Nemo_bis renamed this task from Adding parameters for target article, language and project to Upload Wizard to Add parametes(s) for UploadWizard to redirect to target page after upload.Mar 22 2015, 3:46 PM
Nemo_bis updated the task description. (Show Details)
Nemo_bis set Security to None.
Glaisher renamed this task from Add parametes(s) for UploadWizard to redirect to target page after upload to Add parameter(s) for UploadWizard to redirect to target page after upload.Mar 22 2015, 3:46 PM

WMDE folks implemented a variant of this for Wiki Loves Monuments campaigns, see T105281.

Change 339951 had a related patch set uploaded (by Lucianprj):
After the UploadWizard finishes the user is sent back to referrer page.

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