diff --git a/app/controllers/webhook_controller.rb b/app/controllers/webhook_controller.rb index cdce598a5..8ee719820 100644 --- a/app/controllers/webhook_controller.rb +++ b/app/controllers/webhook_controller.rb @@ -33,7 +33,7 @@ class WebhookController < ActionController::Base private def link_to_manager(model, url) - "#{model.model_name.human}##{model.id}" + "#{model.model_name.human}##{model.id}" end def verify_signature! diff --git a/app/helpers/string_to_html_helper.rb b/app/helpers/string_to_html_helper.rb index 2e01ab99b..76a595699 100644 --- a/app/helpers/string_to_html_helper.rb +++ b/app/helpers/string_to_html_helper.rb @@ -1,7 +1,7 @@ module StringToHtmlHelper def string_to_html(str) html_formatted = simple_format(str) - with_links = html_formatted.gsub(URI.regexp, '\0') - sanitize(with_links, attributes: ['href', 'target']) + with_links = html_formatted.gsub(URI.regexp, '\0') + sanitize(with_links, attributes: ['target', 'rel', 'href']) end end diff --git a/app/javascript/new_design/administrateur/DraggableItem.vue b/app/javascript/new_design/administrateur/DraggableItem.vue index 1351dc395..2de6f4075 100644 --- a/app/javascript/new_design/administrateur/DraggableItem.vue +++ b/app/javascript/new_design/administrateur/DraggableItem.vue @@ -96,7 +96,7 @@ Modèle