Skip to content

Commit

Permalink
VACMS-15779: Set rel="noopener" in preview links. (#15780)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndouglas authored and chri5tia committed Oct 25, 2023
1 parent 98319e9 commit c5dd288
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ function va_gov_backend_preprocess_page(&$variables) {
$host = \Drupal::request()->getHost();
$preview_form = new PreviewForm();
$url = $preview_form->getEnvironment($host, $nid);
$button = '<a class="button button--primary js-form-submit form-submit node-preview-button" target="_blank" href="' . $url . '">Preview</a>';
$button = '<a class="button button--primary js-form-submit form-submit node-preview-button" rel="noopener" target="_blank" href="' . $url . '">Preview</a>';
$variables['page']['sidebar_second']['#markup'] = $button;
}
}
Expand Down

0 comments on commit c5dd288

Please sign in to comment.