Associate link with topic

I just noticed that if I “reply as a linked topic” and paste a link as the topic title, this does not fire the link association either. Can you please point to the code responsible for this logic?