redirectTo with function (params, path, search)