Skip to content

Commit 89242aa

Browse files
committed
Redirect back to reply
1 parent f1b7f95 commit 89242aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/ReplyController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ public function like(Reply $reply)
6868
{
6969
$this->dispatchNow(new LikeReply($reply, auth()->user()));
7070

71-
return back();
71+
return redirect()->to(url()->previous() . "#{$reply->id}");
7272
}
7373

7474
public function unlike(Reply $reply)
7575
{
7676
$this->dispatchNow(new UnlikeReply($reply, auth()->user()));
7777

78-
return back();
78+
return redirect()->to(url()->previous() . "#{$reply->id}");
7979
}
8080

8181
private function redirectToReplyAble(ReplyAble $replyAble): RedirectResponse

0 commit comments

Comments
 (0)