After Profile Avatar Submit/Edit handler

Hi Team,
I wanted to redirect the page to profile page after profile/picture submit or edit. This was due to delay in Gdn::session->photo update. I tried profileController_AfterEdit_handler, did not work.
I tried the js reload after form submit but it also did not work because the page refresh after choose file is not updating the Gdn::session->photo. I tried settimeout but it's not firing due to page refresh.
TIA
0
Comments
Fixed it by using userModel_afterSave_handler then header location to profile page.