From d339130c34f307f991e4372eb1e04f33f46b2e41 Mon Sep 17 00:00:00 2001 From: angusmcleod Date: Mon, 8 Feb 2021 21:06:28 +1100 Subject: [PATCH] Switch to using category_id instead of slug for open_composer See further https://thepavilion.io/t/category-is-not-working-in-open-composer-action/3979/2 --- lib/custom_wizard/action.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/custom_wizard/action.rb b/lib/custom_wizard/action.rb index 68714bd4..eb97f0f9 100644 --- a/lib/custom_wizard/action.rb +++ b/lib/custom_wizard/action.rb @@ -273,9 +273,7 @@ class CustomWizard::Action url += "&body=#{encode_query_param(params[:raw])}" if category_id = action_category - if category = Category.find_by(id: category_id) - url += "&category=#{category.full_slug('/')}" - end + url += "&category_id=#{category_id}" end if tags = action_tags