Implemented `redirectTo` method.