Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Devise/Omniauth add garbage to the URL?

After signing in with facebook, I'm being redirected to /#_=_, which shows the home page.

This sort of garbage also appeared in other URLs, for example when sign up failed and got redirected to /users/sign_in#_=_

Why does this happen, and how can I fix it?

like image 909
HappyDeveloper Avatar asked Mar 12 '12 10:03

HappyDeveloper


1 Answers

If you really don't want it, some simple javascript and you're good to go :

if (window.location.hash == "#_=_") {
    window.location.hash = "";   }
like image 186
planvin Avatar answered Oct 18 '22 17:10

planvin