fixed the redirectTo from CreateResource