Change redirect method.