From 54a32a2e97cc9a1fd20ac949f90f6e4ba2c6a4f9 Mon Sep 17 00:00:00 2001 From: Corinne Durrmeyer Date: Mon, 22 Jul 2024 17:11:32 +0200 Subject: [PATCH] Add content to link title attributes --- app/lib/redcarpet/trusted_renderer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/redcarpet/trusted_renderer.rb b/app/lib/redcarpet/trusted_renderer.rb index 850841135..afb2749f5 100644 --- a/app/lib/redcarpet/trusted_renderer.rb +++ b/app/lib/redcarpet/trusted_renderer.rb @@ -18,7 +18,7 @@ module Redcarpet } unless href.starts_with?('/') - html_options.merge!(title: new_tab_suffix(title), **external_link_attributes) + html_options.merge!(title: new_tab_suffix(content), **external_link_attributes) end content_tag(:a, content, html_options, false)