From 6cb226fcb7880607182a3f56e9003b2e81921fd3 Mon Sep 17 00:00:00 2001 From: Jeff Thompson <160783290+jthompson-arcus@users.noreply.github.com> Date: Fri, 10 Jan 2025 12:20:06 -0500 Subject: [PATCH] Open new tabs for hyperlinks in HTML reports --- inst/report_downloads/reportHtml.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/report_downloads/reportHtml.Rmd b/inst/report_downloads/reportHtml.Rmd index a760fda1..6d160240 100644 --- a/inst/report_downloads/reportHtml.Rmd +++ b/inst/report_downloads/reportHtml.Rmd @@ -76,7 +76,7 @@ createCard <- function(title, desc, value, score = "NULL", else if(is_url) value <- a(ifelse(nchar(value) <= val_max_nchar, value, glue::glue('{stringr::str_sub(value, 1, (val_max_nchar - 3))}...') - ), href = value) + ), target = "_blank", href = value) # unfortunately, adding the href can sometimes force the footer to fall # outside the card when val_max_nchar is too large. else if(value %in% c('TRUE', 'FALSE'))