add protocol and hostname to link