
If you're using a custom SPFx extension, you can inject JavaScript to ensure all external links open in a new tab. After the page loads, you can search for any links (anchor tags) and modify them to include the target="_blank" attribute.
Here’s an example JavaScript snippet you can include in your SPFx web part or extension: