Skip to content

Commit

Permalink
Navigate to replay after updating reply
Browse files Browse the repository at this point in the history
It would be good UX to show the reply after editing it rather than the thread's first page.
  • Loading branch information
mcraz committed May 24, 2014
1 parent 89264d6 commit bda1cda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/Forum/ForumRepliesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public function replyUpdateError($errors)

public function replyUpdated($reply)
{
return $this->redirectAction('ForumThreadsController@getShowThread', [$reply->thread->slug]);
$replyPresenter = new ReplyPresenter($reply);
return $this->redirectTo($replyPresenter->url);
}

// reply deletion
Expand Down

0 comments on commit bda1cda

Please sign in to comment.