Fixed #266 -- Use URL resolving in templates

Aren't those templates used for the docs as well? If yes then those links should keep the hostname.