Implemented `redirectTo` method