phoenix_guardian icon indicating copy to clipboard operation
phoenix_guardian copied to clipboard

#_=_ is appended in URL after Facebook OAuth

Open charleshan opened this issue 8 years ago • 0 comments

https://developers.facebook.com/blog/post/552/

Temporary solution is adding the following but you can still see the #_=_ while the page is loading.

window.onload = function(e){
  if (window.location.hash == '#_=_') {
    window.location.hash = ''; // for older browsers, leaves a # behind
    history.pushState('', document.title, window.location.pathname); // nice and clean
    e.preventDefault(); // no page reload
  }
}

charleshan avatar Sep 15 '16 01:09 charleshan