In SharePoint 2010, I have a Wiki page that includes a button. When the user clicks on it, they head to Upload.aspx
for a document library to submit a document. Once finished, when they fill in column values and click "OK", usually they're then presented with the document they uploaded. I want them to go back to the original wiki page where they clicked the button.
Searching for related questions, I've found that a Source
attribute can be added, the trouble is that this doesn't appear to be working. For example, when my button is linked this way:
<a href='(...long url...)/DocumentLibrary/Upload.aspx?Source=url_encoded_url_for_wiki_page'> (...) </a>
The behavior that I see is that post document upload, the user is returned to the Document Library default view, not the link I provided. Now, if Source
is absent or blank, the user goes to the uploaded file itself, so clearly something is happening. I've tried both a fully-qualified URL, and just a relative path such as /sites/blahblah/Wiki%20Pages/Home.aspx
, both with the same result.
What's going on with the Source
parameter here?