If you would like to redirect users to a different page after editing their profiles, then make the following changes.

Edit

pedit.php

Find...

if( empty( $this -> aErrors[0] ) and empty( $this -> aErrors[1] ) ) { // do not save in ajax mode
                if (!$this -> bAjaxMode or $this->bForceAjaxSave) {
        $this -> saveProfile();
        $sStatusText = '_Save profile successful';

Add underneath...

header("Location: index.php");
exit;

 

It's a bit of a hack, but if the profile save is successful, then it will redirect the user to the index page.

Simply change the page to suit your needs.

/DM