We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b7f95 commit 89242aaCopy full SHA for 89242aa
app/Http/Controllers/ReplyController.php
@@ -68,14 +68,14 @@ public function like(Reply $reply)
68
{
69
$this->dispatchNow(new LikeReply($reply, auth()->user()));
70
71
- return back();
+ return redirect()->to(url()->previous() . "#{$reply->id}");
72
}
73
74
public function unlike(Reply $reply)
75
76
$this->dispatchNow(new UnlikeReply($reply, auth()->user()));
77
78
79
80
81
private function redirectToReplyAble(ReplyAble $replyAble): RedirectResponse
0 commit comments