Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信静默授权的时候,页面上老是会显示一段很长的英文Redirecting to http://xxxx,很影响用户体验,有没有什么方法可以去掉,保留空白页,或者允许自定义显示内容 #939

Closed
birdy0815 opened this issue Sep 26, 2017 · 3 comments

Comments

@birdy0815
Copy link

No description provided.

@shenjr
Copy link

shenjr commented Dec 26, 2018

我也想知道这个问题怎么处理,看你关闭了讨论,有解决方法了吗? 难不成去改源码?

@shwatty
Copy link

shwatty commented Dec 25, 2020

找到这个文件
\vendor\symfony\http-foundation\RedirectResponse.php

把body 设置 style 隐藏即可
代码如下
<body style="display: none"> Redirecting to <a href="%1$s">%1$s</a>. </body>

@overtrue
Copy link
Collaborator

$response->send();

不要 echo 就没这些事儿了,了解一下 RedirectResponse 的用法...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants