Using Modal Forms - Relative paths don't work
This was due to how I implemented the modal forms. I'd put the following path:
"modal_forms/%ctools_js/login" in my menu links. 

Changing this to an absolute rather than relative path solved the problem.