check to make sure request is not ajax before setting return url
check to make sure request is not ajax before setting return url

fixes #743
Sorcery/sorcery,Sology/sorcery,NoamB/sorcery,athix/sorcery,NoamB/sorcery,jshum/sorcery,rubenmoya/sorcery,Sorcery/sorcery,athix/sorcery,Sorcery/sorcery,jshum/sorcery,rubenmoya/sorcery,athix/sorcery,Sology/sorcery