If you're just trying to reload the same page, e.g. object/edit page after save, just remove the $this->redirect() entirely from the edit() function in the Controller. Then it won't redirect anywhere, but simply reload the same page.
public function edit($id = null)
$this->Flash->success(__('The object has been saved.'));
//return $this->redirect(['action' => 'index']);