Redirect refresh page

If I add something to the database and then add:

$this->redirect( ‘/test’)

It reloads my browser when I change the road, is this a good action? Shouldn’t this use turbolines and do it without reloading page?

Hey!

Try ir, direct from the component:

  • return redirect()->to(’/test’);
  • or redirect(’/test’);

Got it on https://laravel-livewire.com/docs/redirecting/.

This redirection refreshes the browser. I did it by $emit. I think redirect () should have a turbolink redirect. Or that’s just my problem. Thank you.

@bbcreation Can you expatiate on this?

I did by emitting. As suggested for git: https://github.com/livewire/livewire/issues/370

Can you show me an example of how you did that?