A link that isn't to an external page is treated as external link. Functionality is broken (it opens in a new tab) and formatting is wrong (external link icon is added to it).
Here's the problem:
Links that don't conform to a certain pattern are changed to be formatted as external links (by adding an svg icon and a class name) and target="_blank" gets added the them. The function that does this is greedy and doesn't exclude this case.
In this case, the link should not be treated as an external link.
Where did you find the bug?
Every link in content that has href="javascript:void(0)", which is a common way to prevent default link behavior. Example here: https://develop.greenpeace.ch/de/external-link/
What went wrong?
A link that isn't to an external page is treated as external link. Functionality is broken (it opens in a new tab) and formatting is wrong (external link icon is added to it).
Here's the problem:
Links that don't conform to a certain pattern are changed to be formatted as external links (by adding an svg icon and a class name) and target="_blank" gets added the them. The function that does this is greedy and doesn't exclude this case. In this case, the link should not be treated as an external link.