Solution: Project returns to Project Site home page when you close it on PDP

One of the victims of Project Server 2013 utilising SharePoint platform is the navigation (in)consistency.

 

Here is a description of one of the associated issue (or feature by design, who knows?)

 

If you

i) Open a Project from Project Centre (Projects Page),

ii) Move between PDPs

iii) Press Close button on Ribbon

 

You’ll return on Projects page.

 

Showcase1

 

But if you,

i) Open a Project from Project Centre (Projects Page),

ii) Move between PDPDs

iii) Click Project Site link

iv) Click Project Details link to go back to PDPs

v) Press Close button on Ribbon

 

You’ll return on Project Site Home Page.

 

Showcase2

 

The culprit in this case is “&ret=1” parameter in the URL which is added by Project details link. Unfortunately, this link is automatically added by a Project Server feature so we can’t change it in a Site Template.

 

The solution is to use a Swiss army knife of SharePoint. a.k.a JavaScript.

 

Just add the following code on all the PDPs via Content Editor web part Smile

 


<script>


function SetReturnPage() {
    PDP_ret =0 ; // This will take the user back to Project Centre
}
_spBodyOnLoadFunctionNames.push("SetReturnPage");


</script>

  

0 comments:

Post a Comment