To mitigate Wikipedia’s bug, could Discourse rewrite the en.m.wikipedia links to en.wikipedia links? This would solve the problem.
And it would also be good to avoid external links going to mobile versions of the target website (as some of our visitors may be on desktops. If users are on mobile, an en.wikipedia link will redirect to en.m.wikipedia anyway)