Use hostname instead of host

``link.host`` may also return the port number contrary to ``location.host``
Merge pull request #263 from EmmanuelVella/patch-1

Use hostname instead of host