diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index 14782c51afdc69f631a5a78b42e0c61f0fda0ed5..7a1406ea9a739f8f9c35cb23a1d63d52edf98ff2 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -128,7 +128,7 @@ class PhotosController < ApplicationController format.html do flash[:notice] = I18n.t 'photos.destroy.notice' if photo.status_message_guid - respond_with photo, :location => photo.status_message + respond_with photo, :location => post_path(photo.status_message) else respond_with photo, :location => person_photos_path(current_user.person) end