Recently i had a question where in users didn’t wanted to get redirected to workflow status page, every time you submit or even when you hit save on the first PDP page, rather they wanted to get redirected to a new page, but should retain the project UID for reference
Easy workaround use java script get the query string and redirect it, so how do you do it, here you go
1. Create a new PDP page
2. Set its property to be used as workflow status page
3. Edit the page and insert a content editor web part there
4. Edit the HTML for the content editor and paste the code below
Note :: be cautious as soon as you save the page and it reloads you wont be able to edit it again as it would by default redirect, hence make sure you put some condition like if projUID <>’000000000000′ or something to keep it editable 🙂
<script type=”text/javascript”>
var ProjUID =”;
URL = window.location.search.substring(1);
Array = URL.split(“&”);
for (i=0;i
{
Parameter = Array[i].split(“=”);
if (Parameter[0].toLowerCase() == “projuid”)
{
ProjUID = Parameter[1];
break;
}
}
var Redirectionstring = “https://ServerName/pwa/project%20detail%20pages/newRedirectedPage.aspx?projuid=” + ProjUID;
location.href =Redirectionstring ;
</script>
6. Navigate to Workflow Stage Settings in Server Settings
7. For the appropriate stage change the workflow stage status page to the newly created page
And viola youa re done 😉
Nice one 🙂