Hi guys,
We are seeing an issue in our production environment where links are being incorrectly substituted. Our author (and our code) only select resources from the JCR to build links. AFAIK, the links should be relative but we are actually seeing host names in the links.
For instance, if an author selects the resource /content/domain_com/en-us/locator, we expect to see the HTML:
<a class="block-level list-item-link" href="https://forums.adobe.com/content/domain_com/en-us/locator.html" title="Locations" target="_self">Locations</a>
And in most environments, we do see that, but intermittently, we see this:
<a class="block-level list-item-link" href="https://test-host.domain.com:4503/content/domain_com/en-us/locator.html" title="Locations" target="_self">Locations</a>
Ironically, we only see that in production.
We do have some sling redirects set up, but I'm not sure if they are the cause. My understanding is that they will only change relative paths-not add on a hostname.
The relevant sling redirect could be this:
/etc/map/http/test-host.domain.com.4503/content/panerabread_com/en-us.json
{
"jcr:primaryType": "sling:Mapping",
"jcr:mixinTypes": [
"cq:ReplicationStatus"
],
"jcr:createdBy": "admin",
"jcr:created": "Fri May 18 2018 15:29:02 GMT-0500",
"sling:match": "en-us",
"sling:internalRedirect": [
"/content/domain_com/en-us",
"/content/domain_com/en-us/content"
]
}
But I'm not really sure.
FYI, we are running 6.3 SP1.
Any help would be appreciated.
Thanks much!