function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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;