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

前端 未结 23 2180
爱一瞬间的悲伤
爱一瞬间的悲伤 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

    Adding this to my redirect page fixed the problem for me ...

    if (window.location.href.indexOf('#_=_') > 0) {
        window.location = window.location.href.replace(/#.*/, '');
    }
    

提交回复
热议问题