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

When returning back() it redirects to toolbar assets #35

Open
LorenzoSapora opened this issue Apr 26, 2020 · 2 comments
Open

When returning back() it redirects to toolbar assets #35

LorenzoSapora opened this issue Apr 26, 2020 · 2 comments

Comments

@LorenzoSapora
Copy link

Laravel: 7.8.1
Telescope: ^3
Toolbar: 1.2.3

Reproduce:

// Some controller

public function store(Request $request)
{
 $this->validate($request, [
'foo' => 'required'
]);

$data = new Counter;
$data->foo = $request->input('foo');
$data->save();

return redirect()->back();
}

This successfully runs, but the redirect is hijacked by the asset

/_tt/assets/styling.css

Even hijacks when running in app_env=production but I believe that might be an issue with how I'm loading telescope, so possibly ignore that.

@barryvdh
Copy link
Member

You could try changing the middleware of Telescope, so not use the session.

@LorenzoSapora
Copy link
Author

As in, inside config/telescope.php? I don't quite follow. I removed some of the existing middlewares, to see if that made a difference (it didn't), but I could do with being pointed in the right direction.

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