jonassiewertsen / statamic-livewire

A Laravel Livewire integration for Statamics antlers engine
83 stars 14 forks source link

Error when redirecting #16

Closed aerni closed 2 years ago

aerni commented 2 years ago

Redirecting to another page within a Livewire component throws this error:

Jonassiewertsen\Livewire\Tags\Livewire::wildcard(): Return value must be of type string, null returned

You can reproduce this using this code:

public function mount()
{
    return redirect()->to('/');
}

Versions: Statamic 3.2.16 Pro Laravel 8.64.0 PHP 8.0.12 jonassiewertsen/statamic-livewire 2.7.0

Beaudinn commented 2 years ago

17

jonassiewertsen commented 2 years ago

Should be fixed in Version 2.7.1

https://github.com/jonassiewertsen/statamic-livewire/releases/tag/v2.7.1

jonassiewertsen commented 2 years ago

Thanks @Beaudinn