In previous plugins, I could easily program to return to the previous page with this kind of coding:
$text = "<br /><center><input class='btn btn-success' type=button value='Back' onClick='history.go(-1)'></center>";
$ns -> tablerender("Error page", $text);
In e107 v2 this still works, but when coming from a form page with values, instead of retrieving the old values, I get a new refresh page with nothing filled in. I would use this technique to display a page with warnings and/or errors and then let the user return to the previous page with all the filled in values, so they only need to correct maybe one or two fields instead of filling everything from scratch. What is the best v2 way of doing this. Any coding examples present that display this kind of behavior?