Upstreaming from https://phabricator.wikimedia.org/T253 :
While T1234 provides a popup when hovering over with the mouse, full URLs like https://secure.phabricator.com/T4829 do not. A regex could check whether the URL refers to the same installation.