From 292c2e4a031360e5b58385f4b6b7f3e47a8ca988 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 11 Oct 2023 16:39:45 -0400 Subject: Fixed broken blog post urls --- app/controllers/admin/blogs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/admin') diff --git a/app/controllers/admin/blogs_controller.rb b/app/controllers/admin/blogs_controller.rb index c6d0168..8e288a8 100644 --- a/app/controllers/admin/blogs_controller.rb +++ b/app/controllers/admin/blogs_controller.rb @@ -13,7 +13,7 @@ class Admin::BlogsController < Admin::AdminController @blog = Blog.find(params[:id]) if @blog.published - redirect_to blog_post_url(@blog.slug) + redirect_to @blog else render layout: "application" end -- cgit 1.4.1