TI automatically checks the HTTP header to determine whether to use http or https for generating link. As your webserver is behind a proxy the auto detect wont work. To fix this you need to explicitly tell TI to use https or http by adding 'urlPolicy' => 'secure',
into your config/system.php
config file.
There are three options available depending on your SSL setup; detect
, secure
, insecure
.