Is there a way to find the previous location / address in an action?

For example:
Currently in www.domain.com/a/c/f/arg1
Follow some link to action_x

def action_x:
  if something_is_wrong:
    redirect(request.last_location) # including args
  ...

My goal is to send the user to the page is comming from in case he calls an
action with a incorrect or the wrong parameters.

Txs,
Miguel

Reply via email to