Show diary entry after creation

This allows users to review their post and use the social share
buttons more easily.

Refs #1391
This commit is contained in:
Andy Allan 2025-01-08 11:27:54 +00:00
parent c20160d313
commit 55e3f90dd4
2 changed files with 4 additions and 4 deletions

View file

@ -123,7 +123,7 @@ class DiaryEntriesController < ApplicationController
# Subscribe user to diary comments
@diary_entry.subscriptions.create(:user => current_user)
redirect_to :action => "index", :display_name => current_user.display_name
redirect_to diary_entry_path(@diary_entry.user, @diary_entry)
else
render :action => "new"
end