Facebook登入
// Get the page we were before $redirect = Session::get('loginRedirect','hirer/account');
域名成了这个
http://domain.com/hirer/account#_=_
#=背后是什么,我怎么不显示它?
虽然这个帖子很老,但希望这可能对其他人有所帮助.
我看到有些人通过向重定向页面添加javascript代码来解决问题,从该位置删除#_ = _.
我看到有些人通过向重定向页面添加javascript代码来解决问题,从该位置删除#_ = _.
然而,这对我来说很难看.还有另一种方法可以从后端解决这个问题.你可以让你的重定向网址包含你自己的主播#,这样它就会覆盖facebook添加的#_ = _.例如,这是我的Laravel的handleProviderCallback:
public function handleProviderCallback() { $user = Socialize::with('facebook')->user(); // add the user to your database if it doesn't exist // redirect the user to home page,the anchor # is // to overwrite #_=_ anchor added by facebook return redirect('/#'); }
原文地址:https://www.jb51.cc/php/137692.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。