Skip to content

Commit

Permalink
Open new tabs for hyperlinks in HTML reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jthompson-arcus committed Jan 10, 2025
1 parent e5787bd commit 6cb226f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/report_downloads/reportHtml.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 6cb226f

Please sign in to comment.