hotfix the resource links should be independent of the protocol