Fixed redirect=? param usage in api scaffold