fixed it with some javascript
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('a[target="_blank"]').forEach(function(link) {
if (link.hostname === window.location.hostname) {
link.removeAttribute('target');
}
});
});

