Hi Kushan,
Currently it is generating incorrect links. The correct link should be your profile URL + credentials + credential ID. For example, say you view your certificate and see that the Credential ID for your SC-300 is 6231DAB619FA8F1. The correct sharing URL in that case would be as below:
https://learn.microsoft.com/en-us/users/kushanwijayawardana-2707/credentials/6231dab619fa8f1
Please click Accept Answer and upvote if the above was useful.
Thanks.
-TP