+ Start a Discussion

Visual Force Component refreshing to a new window

I have a visualforce page which is embedded in a standard page layout for tasks that seems to be working fine but for 1 user whenever they save the page refreshes the entire window and only shows the visualforce page.  The user is using IE.

Here is my code below.

PageReference pageRef = new PageReference(ApexPages.currentPage().getUrl());

    public pageReference saveContacts(){
     List<eventRelation> addeventRelation = new List<eventRelation>();
     for(cContacts c: getTeamMember()){
            c.selectBox =  true;
            c.participated = false;
        IF(c.selectBox ==  true && c.participated == false){
            eventRelation ev = new eventRelation();
            ev.RelationId =  c.cId;
            ev.eventId =  eId;
    insert addeventRelation;
    return pageRef;