It’s just the domain portion of the URL that you need to whitelist, you don’t need to include the protocol or path.
For example, if you whitelist subdomain.domain.com then that will allow you to link to subdomain.domain.com/path, subdomain.domain.com/some/other/path etc…