I have deployed the referral link change. You will now see the full referral link. If you see the link being clipped, just refresh the page (I think it's because browser has cached the old style sheet or some CDN issue, not sure).
@necrevistonnezr Good catch. Looks like we got the uniqueness constraint in 5.1 itself wrong. Currently, it is (name, userid). It shoud be (name, appid, userid) or maybe even just (appid, userid). We cannot fix it for this release but maybe the next since we try to do db changes only in new releases.
@girish Well-known is in place for Synapse already, but it seems that well-known configurations aren't enough to enable entering domain.tld as homeserver in Riot sign-in when the server is at matrix.domain.tld.
What seems to be needed is the ability to forward the whole /_matrix path at domain.tld to Synapse.
In nginx terms I belive that would look something like this: