PHP Location Header Ignore Hash [duplicate]

折月煮酒 提交于 2019-11-29 11:00:53

You can redirect on your server side PHP to a URL that includes its own hash. That's what I had to do a ruby app that uses backbone.js.

PS - I specified the redirect_uri and FB still appended the stupid #_=_ string :/

It seems JavaScript is the only way to remove a hash since the hash is never sent to the server in any way. So I added a script to a blank page:

window.location.hash = '';  window.location.href = "http://myurl.com"

This is the answer for now, but I will accept better ones.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!