Clone URL value

I am sorry for a possibly trivial question, but how does RhodeCode form the “clone URL” link?
When I open a repo in a web interface, this is what I see:
ssh://root@192.168.1.40/MyRepo

In Admin, Settings, System Info there is a “RhodeCode Base URL” – it shows the correct external URL. Naturally, I want it to see it as a clone URL!

It generates clone url based on server host info (base url isn’t taken to account here) Usually if you see the IP it might be that you access the server directly via IP, or the reverse proxy isn’t configured correctly to send the host info.

Easiest fix is to alter the clone url templates (in vcs settings admin) and replace the host into hardcoded host of your choice.