Fixing use of deprecated static Director::redirect and redirectBack