func redirectToFrom(ctx *app.Context) { from := ctx.FormValue(app.SignInFromParameterName) if from == "" { from = "/" } ctx.Redirect(from, false) }