'Open in Web' should open in a different tab

Where does the bug appear (feature/product)?

Bugbot / Security Review Agent in Github comments in web browsers.

Describe the Bug

‘Open in Web’ button in bot comments opens in the same tab, this should not be the case.

Steps to Reproduce

Click on a bot comment’s ‘Open in Web’ button.

Expected Behavior

Open in new tab.

Operating System

MacOS

Version Information

Web browsers, many versions.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @silent!

Thanks for the feedback. This should already be the case for Bugbot comments, but not for other Review Agents. We should probably align those. Can you confirm that matches your experience?

All the links I get open on the same tab, not in a new one.

Ah, got it. I had looked at the code but hadn’t tested it myself (my bad!)

It looks like GitHub’s markdown sanitizer strips the target (and rel) attribute from anchor tags in all rendered comment/PR/issue/README content, including raw HTML <a> tags. There are some existing GitHub Community Discussions about this.

So unfortunately, I don’t think we can do anything here unless that gets fixed on GitHub’s end. :frowning: