@:route("/$name", GET)
public function index(?name : String = "stranger"){ return new ViewResult({
greeting: 'Hello, $name.', });}
@:route("/action/submit/", POST)public function submit(args : {name : String}){ return new RedirectResult(Config.app.basePath + args.name);}
This is something I haven't considered, and it looks like something we should take care of at the HttpRequest level in ufront-mvc...
Could you create a new issue on Github: https://github.com/ufront/ufront-mvc/issues
I'd appreciate your thoughts on what behaviour you expect also. Issues in the format :
1) I run this code
2) it gives this result:
3) I'd prefer it to give this result:
are the easiest ones to fix :)