title: Redirecting to Previous action after form submission in asp.net mvc
body: <p>I have a form on all my pages that allows the user to select their language.  After this action completes I change the current language for that user then I need to make sure I redirect to the same action they were on previously.</p>
  
  <p>I am not sure what the best approach is to do this in asp.net mvc.  One approach is that on every page I save the controller and action as hidden variables in the language form.  </p>
  
  <p>The other would to save the last controller and action into tempdata and then referencing it in the action that sets the current language.</p>
  
  <p>Any thoughts on which approach or another that is best for this scenario?</p>