I am not aware of any way to do this. I can pass this feedback on to the development team. Would you want a configurable redirect or would a K2 specific task completed page be good enough?
-Eric
The redirecting to task list happens because when the form opens, it has a source paramater attached in its query string.. if u can delete it(key and value)..the form redirect to the page it was opened from which had the link without the source parameter. if you want to redirect the user to some other page u can give its url in the source parameter. for example &source=yoururl
Note: this yoururl page should be under the layouts folder of the sharepoint
Can u paste the url which you are using to open the form here??
i am opening the form from the worklist. after clicking "open", it initially goes to this link:
http://sharepoint/depts/operations/_layouts/k2/WorkflowTask.aspx?SerialNumber=999_23&WorkflowInstanceId=99f5ef7c-8612-4d8f-bbd0-d45d5fb1a34d&ListId=4aeb0780-effe-43fb-bb8b-1cb1cd9d487c&ItemId=b348c188-12ec-4360-a449-b85efa057649&TaskListId=dd5e9f50-2f6c-477d-8c16-2c6f5b1288a1
but then it immediately (3 seconds later) opens up this:
http://sharepoint/depts/operations/_layouts/K2BlackPearlPages/K2DefaultTaskPageAdvanced.aspx?ID=159&List=dd5e9f50-2f6c-477d-8c16-2c6f5b1288a1
The source parameter comes in the url when u are opening the form from the document library..I assume you are using forms generation event for this activity.
If anyone's interested, here's my workaround:
- Go to the SharePoint task list that you wind up at.
- Insert a Content Editor Web Part above the List web part.
- Click on "Source Editor"
- Insert the following:
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
<!--
function redirectsp()
{
top.location="http://sharepoint.domain.com/";
}
if (top.frames.length==0)
{
setTimeout('redirectsp()',1000);
}
//-->
</SCRIPT>
</HEAD>
<body>
<font size="10" face="Verdana">
<i>
Redirecting you to the main site.<br>
If you are not redirected, click <a href="http://sharepoint.domain.com/">HERE.</a>
</i>
</font>
</body>
</html>
This is based upon the helpful information i found here: http://www.sharepointblogs.com/holliday/archive/2008/03/20/redirect-sharepoint-site-to-new-location.aspx
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.