Skip to content

Commit

Permalink
fix: home annotator block redirection to annotator page with empty te…
Browse files Browse the repository at this point in the history
…xt (#629)
  • Loading branch information
Bilelkihal committed Jun 14, 2024
1 parent 88c6855 commit 1c01851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c01851

Please sign in to comment.