RTE v13 to v17 migration media issue

Hi,

recently we migrated or website from v13 to v17. The transition mostly went smoothly, but recently we found some issues with some RTE content.


<p>
<a target="" 
data-router-slot="disabled" 
data-anchor="?la=de-de&amp;hash=67FFCC044F212B8A45E55225A5ABCC0C"     
href="/{localLink:737be26b-79a5-4eb7-a2e5-b81d42480630}" 
title="Download image"
type="media?la=de-de&amp;hash=67FFCC044F212B8A45E55225A5ABCC0C">
Download image
</a>
</p>

I observed that some links to media that had for some reason a query string parameter (probably from copying the link from somewhere), this query parameter got into type attribue and in data-anchor.

If I change the HTML in RTE like follows, the link starts to work again:

<p>
<a target="" 
data-router-slot="disabled" 
href="/{localLink:737be26b-79a5-4eb7-a2e5-b81d42480630}" 
title="Download image"
type="media">
Download image
</a>
</p>

I cannot click through the whole page to find this broken links, so is there a way to fix this globally?