og.url and og:image linked to localhost:4503 | Community
Skip to main content
Level 3
October 12, 2021
Solved

og.url and og:image linked to localhost:4503

  • October 12, 2021
  • 1 reply
  • 727 views

og.url and og:image both seem fine on author mode "view as published", they all points to correct production domain.

 

But on production live site, both og.url and og:image pointed to localhost:4503? Any settings I should be looking at? Thanks in advance.

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 Asutosh_Jena_

Hi @kam-nyc 

 

Please check the Externalizer configration and see what URL has been configured?

com.day.cq.commons.impl.ExternalizerImpl.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
externalizer.domains="[local http://localhost:4502,author http://localhost:4502,publish http://www.website.com]"/>

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
October 13, 2021

Hi @kam-nyc 

 

Please check the Externalizer configration and see what URL has been configured?

com.day.cq.commons.impl.ExternalizerImpl.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
externalizer.domains="[local http://localhost:4502,author http://localhost:4502,publish http://www.website.com]"/>