From 5b1702ff52fe42d52edc67041ba2ad9a33472fc9 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Mon, 13 Nov 2023 15:39:26 +0100 Subject: [PATCH] replace link_to with contant_tag --- app/helpers/terms_and_conditions_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/terms_and_conditions_helper.rb b/app/helpers/terms_and_conditions_helper.rb index 0b848433cc5b..a31aa38141d5 100644 --- a/app/helpers/terms_and_conditions_helper.rb +++ b/app/helpers/terms_and_conditions_helper.rb @@ -2,8 +2,8 @@ module TermsAndConditionsHelper def link_to_platform_terms - link_to(t("terms_of_service"), TermsOfServiceFile.current_url, target: "_blank", - rel: "noopener") + content_tag(:a, t("terms_of_service"), href: TermsOfServiceFile.current_url, target: "_blank", + rel: "noopener") end def any_terms_required?(distributor)