This is the proper way to handle it. The decision should always be left up to the user. On Windows, they can Ctrl+click (new tab) or Ctrl+Shift+click (new window).
If you’re compelled to force the decision on the user, you can always add target="_blank" rel="noopener"
to the anchor tag manually.