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.
Nikhil-Kumar
Nikhil-KumarAccepted solution
New Participant
May 2, 2023 6:43 PM UTC

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

5 replies

Nikhil-Kumar
Nikhil-KumarAccepted solution
New Participant
May 2, 2023 6:43 PM UTC

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

Translate
KKeerthiAuthor
Level 2
May 5, 2023 8:30 AM UTC

Thank You.

Translate
Level 2
May 2, 2023 12:34 AM UTC

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. 

Translate
KKeerthiAuthor
Level 2
May 5, 2023 8:30 AM UTC

Thank you.

Translate
ManviSharma
Employee
May 1, 2023 6:45 PM UTC

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.

Translate