diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index bed70f667..06e78a77b 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -17,7 +17,9 @@ class NotesController < ApplicationController def show @note = Note.find(params[:id]) - respond_with(@note) + respond_with(@note) do |format| + format.html { redirect_to(post_path(@note.post, anchor: "note-#{@note.id}")) } + end end def create