We are a SugarCRM Pro v5.2 user.

I'm trying to figure out how SugarCRM defines what URL to send in some messages.

In our config.php, we have this:

..
'host_name' => 'crm.xxxx.com',
...
'site_url' => 'http://crm.xxxx.com',
...

Yet, if a user assigns a record to me, then the link is:

http://crm/xxxxx

Where is this setting defined then?