Changing URL in the email notification

I want to change the URL int the end of the email notification by two URL each one with a different IP
Where can i find the code that did the generation of the URL ?

See this PR that was merged a while ago,

https://github.com/salesagility/SuiteCRM/pull/2401/files

there you can learn the location of the Template file, and the area of the code that works with that file. I hope this helps.