backlink from one presenter view to an other
- pistols
- Member | 26
Hi there,
I would like to ask you for your help with an issue I am facing.
I have some components (forms) that can be linked from any presenter in my app. I would like to set “nicely” the ability to redirect back to the page from where i called the form in the first place.
simple example
template usersStuff.latte
Now, if the user clicks on the stuff:edit action, he will be redirected to a different page on a different presenter, with a form in it. After submitting, I need to get him back from where he came from. For this example to usersStuff.
I have read this but I guess i am missing something obvious. I don't know how to pass the storedRequest to the presenter which creates the component.
I hope you understand my question :)
Greets
- Oli
- Member | 1215
I belive it is best practice if you want have parameter in URL. If you don't want this parameter in URL you can use $httpRequest->getReferer()->host and make something around it. For example if it is from your website.