MDL-19976 Changing redirect($url->out()) to redirect($url). NEVER, NEVER use redirect...