Add safe rel attribute on links with target "_blank"
What does this MR do and why?
Resolves #441440.
- Adds
rel="noopener noreferrer"
attribute on links withtarget="_blank"
. - Updates component instances in Haml were this was manually set before.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
How to set up and validate locally
- Check the preview in Lookbook: http://gdk.test:3000/rails/lookbook/inspect/pajamas/button/link?target=_blank
- Verify the updated button instances still have the
rel
attribute, now automatically. One such example is the Preview button of each template in http://gdk.test:3000/projects/new#create_from_template (changed file:app/views/projects/project_templates/_template.html.haml
)
Edited by Thomas Hutterer