Facebook Callback appends '#_=_' to Return URL

前端 未结 23 1720
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 14:56

Facebook callback has started appending #_=_ hash underscore to the Return URL

Does anyone know why? What is the solution?

23条回答
  •  无人及你
    2020-11-22 15:26

    For those who are looking for simple answer

    if (window.location.hash === "#_=_"){
        history.replaceState 
            ? history.replaceState(null, null, window.location.href.split("#")[0])
            : window.location.hash = "";
    }
    

提交回复
热议问题