externalizer.absoluteLink | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Nikhil-Kumar

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

3 replies

Nikhil-Kumar
Nikhil-KumarAccepted solution
New Participant
May 2, 2023

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

KKeerthiAuthor
New Participant
May 5, 2023

Thank You.

New Participant
May 2, 2023

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. 

KKeerthiAuthor
New Participant
May 5, 2023

Thank you.

ManviSharma
Employee
May 1, 2023

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.