Redirect back()

Is the back() method still unsupported in Livewire v2? Any workarounds?

I’ve been stashing the previous URL in a public variable in the mount function
public function mount() {
$this->route = url()->previous();
}

then when I need to leave I can just return redirect($this->route);

1 Like