Changed ->redirect argument from ->path to ->url.