I have a delete action in my controller that calls a redirect to the index action when the deletion is competed:
public function actionDelete($id) {
$model = $this->loadReservation($id);
$model->delete();
$this->redirect(array('/site/index'));
}
The deletion happens and the index view is displayed correctly in the browser, but the browser address bar still has the URL for the delete action:
localhost:8888/transportation/#/transportation/site/delete/71
If the user then refreshes the page, the screen goes blank. How can I get the new URL to display in the address bar:
localhost:8888/transportation/#/transportation/site/index
Thanks