Expand my Community achievements bar.

SOLVED

externalizer.absoluteLink

Avatar

Level 3

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:
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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.

View solution in original post

5 Replies

Avatar

Employee Advisor

Hi,

 

The reason why externalizer.absoluteLink is returning an HTTP URL instead of HTTPS could be due to AEM running behind a reverse proxy or load balancer, or not being configured to support HTTPS. To resolve this, you need to check your AEM configuration to determine the cause of the issue and take the necessary steps to configure AEM correctly.

Avatar

Level 3

You need to enable SSL for local AEM Server to make local run on https instead of http. Also its not ideal to use absoluteLink. Its overloaded methods are deprecated in favor of externalizer.externalLink(). So enable SSL, use externalLink and check if it solves. 

Avatar

Correct answer by
Community Advisor

@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.