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

redirect()-> problem #1346

Closed
demortx opened this issue Oct 24, 2018 · 1 comment
Closed

redirect()-> problem #1346

demortx opened this issue Oct 24, 2018 · 1 comment

Comments

@demortx
Copy link

demortx commented Oct 24, 2018

if you simply write like this, then there will not be a redirect, it will exactly transmit the status 200 in the head of it

redirect()->to('http://you.com/',302);

But if forcibly set through exit (302)

redirect()->to('http://you.com/',302);
exit(302);
Works

Please note that the redirect inside the site is working properly!
redirect()->to('/panel',302, 'refresh');

@lonnieezell
Copy link
Member

The docs were updated last night in the repo, though they haven't been pushed out yet.

What you need to do is to return redirect()

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

2 participants