Recently, I posted a comment on a question, which contained a relative link to another question on this site (i.e. a link of the form `[link](/questions/3122/formatting-sandbox)`). The question was later migrated to Meta Stack Overflow.

Later on, on the migrated question, I received a comment reply from another user asking me why I linked to an answer on that site that was completely unrelated to the thing I was talking about. I was very confused as to why the link I had posted had been rewritten.

After a little investigation, I realized that the link was correct in that the portion *after* the site domain was correct, but the domain portion had been rewritten to link to Meta Stack Overflow instead, breaking the link.

This doesn't seem like expected behavior, since the commenter may not be aware of the fact that their question may end up being migrated later and that their relative link would be broken if the question gets migrated. (I was unaware it would be, since normal users can't vote to migrate questions from this site; migration requires a moderator here.)

This might seem like a rather rare occurrence, but given that [the SE team has decided to support relative links in other cases](https://meta.stackexchange.com/a/315218/377214), I think this falls under that as well. I often end up with a relative link under the following cases:

- I have the ID of a question memorized
- I sometimes use the duplicate dialog to find links to related questions (without actually voting to close); that spits out relative links
- The comment has a lot of links and would exceed the length limit, but I can shorten it by making links relative (while there are other ways to shorten post URLs, I've hit the length limit even when using all of those)

Also, I believe that this not only applies to comments, but also to posts (the question and any answers) too. (It could be the same if the Markdown is not re-rendered, but if it is, or if the post is rebaked later, it may break.)

Can we make it so that if a question is migrated, any relative links in the question, any answers, and any comments on the question or answers get rewritten into absolute links on the origin site, rather than becoming broken links to things on the destination site?