### Bug description

When both `code-tools` and `link-external-newwindow` are enabled, the buttons in the code tools are marked as external links and clicking on them leads to new empty windows opened. 

Also, although when the source code link is truly external link, the link is not opened in a new tab, but is redirected in the current tab. Again, there's still a new tab opened but it is empty.

I'm using Quarto-1.1.251 on Manjaro (Arch Linux).

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [ ] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-10-13T10:48:25Z
singuyenmai
bug
closed
Buttons in code tools are treated as external links when `link-external-newwindow` enabled
https://github.com/quarto-dev/quarto-cli/issues/2830