Solved
externalizer.absoluteLink
I tried this
absoluteLink = externalizer.absoluteLink(request, "https", link);
but it gives the result as http://localhost:4506/content/we-retail/language-masters though I gave scheme as https:
I tried this
@kkeerthi - That's because you executing on local AEM server. Try the same stuff in Dev or QA, it should show you https if your Dev and QA are https.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.