Ivan Ivković Posted April 16, 2012 Share Posted April 16, 2012 http://pixpresso.mycyberlove.com/ This is my test hosting for this site I'm making. Navigation and facebook login are almost done. So, the problem is that after facebook login URL is http://pixpresso.mycyberlove.com/#_=_ Why is this? Is this bad, should I and can I remove this? Link to comment https://forums.phpfreaks.com/topic/261055-weird-url-characters-on-facebook-login-redirect/ Share on other sites More sharing options...
xyph Posted April 16, 2012 Share Posted April 16, 2012 That's something Facebook does, I believe. Shouldn't hurt anything, unless you have an element with name/id "_=_", then it'll jump to it on page load. You can get rid of it automatically using JavaScript. Link to comment https://forums.phpfreaks.com/topic/261055-weird-url-characters-on-facebook-login-redirect/#findComment-1337917 Share on other sites More sharing options...
Ivan Ivković Posted April 17, 2012 Author Share Posted April 17, 2012 K, I hope getting rid of it won't ruin any of the Facebook scripts in the API. Link to comment https://forums.phpfreaks.com/topic/261055-weird-url-characters-on-facebook-login-redirect/#findComment-1338033 Share on other sites More sharing options...
xyph Posted April 17, 2012 Share Posted April 17, 2012 I don't see how it would. The hash should be entirely client-side, and shouldn't be used in any sort of authentication or verification. <script type="text/javascript"> if( location.hash == '#_=_' ) location.hash = ''; </script> Link to comment https://forums.phpfreaks.com/topic/261055-weird-url-characters-on-facebook-login-redirect/#findComment-1338196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.