From 1c018519599cd1f48e46cfebacc87381756a7d33 Mon Sep 17 00:00:00 2001 From: Bilel Kihal <61744974+Bilelkihal@users.noreply.github.com> Date: Fri, 24 May 2024 09:59:17 +0200 Subject: [PATCH] fix: home annotator block redirection to annotator page with empty text (#629) --- app/controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 87f9e6e2c..7c7492dbe 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -160,7 +160,7 @@ def feedback_complete; end def annotator_recommender_form if params[:submit_button] == "annotator" - redirect_to "/annotator?text=#{helpers.escape(params[:text])}" + redirect_to "/annotator?text=#{helpers.escape(params[:input])}" elsif params[:submit_button] == "recommender" redirect_to "/recommender?input=#{helpers.escape(params[:input])}" end