From 4f40f71c0140918413a52a1f27bd1272e5e47e21 Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Mon, 27 May 2019 22:56:48 -0700 Subject: [PATCH] Upon Page Delete Redirect to Dashboard instead of Edit Home Page --- app/controllers/locomotive/pages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/locomotive/pages_controller.rb b/app/controllers/locomotive/pages_controller.rb index 0b67fae6c1..20dbe281fe 100644 --- a/app/controllers/locomotive/pages_controller.rb +++ b/app/controllers/locomotive/pages_controller.rb @@ -38,7 +38,7 @@ def update def destroy authorize @page service.destroy(@page) - respond_with @page, location: edit_content_path(current_site.pages.root.first) + respond_with @page, location: dashboard_path(current_site) end def sort