Why does Devise / Omniauth add garbage to the URL?

After logging into facebook, I am redirected to /#_=_ , where the main page is displayed.

This kind of garbage also appeared in other URLs, for example, when registration failed and redirected to /users/sign_in#_=_

Why is this happening, and how can I fix it?

+6
source share
2 answers

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

 if (window.location.hash == "#_=_") { window.location.hash = ""; } 
+2
source

It is common to enter facebook. Do not worry.

0
source

Source: https://habr.com/ru/post/910483/


All Articles