Making the context redirect accept string or redirect instance.