You're talking about opening these links when running the app within RStudio, rather than when it's deployed elsewhere, yes? I can't see anything wrong with the generated HTML for the app, so I'm assuming this works properly if deployed.
If that's the case, then I'd suggest maybe moving this to the #rstudio-ide category since it's more about IDE-specific behavior than about shiny.