so that I can get back to my …/order/index after the update. In some sense, it is working => the page content will be …/order/index again. However, the URL in the browser still shows …/address/update
I think, I have to use a kind of
$this->redirect(!)ToReferringRequest();
However, this function does not exist. Does anyone have any advice for me on the best way to approach this? Thanks for your help!
You can use $this->redirectToRequest($this->request->getReferringRequest()) .
Mind you though, that this effectively lets your update action create arbitrary work flows, i.e. the user ending up at different pages depending on where he came from. This may be wanted, but in a lot of cases this is unwanted - so be aware of that