AEM 6.2, page references and domain name | Community
Skip to main content
Level 2
September 14, 2021
Solved

AEM 6.2, page references and domain name

  • September 14, 2021
  • 2 replies
  • 1879 views

Hello,

When our AEM authors add links to internal content (DAM assets such as pdfs or other webpages), instead of using the content finder to add the links, they will copy and paste the URL from the browser (other times they might create the html first in Adobe Dreamweaver and then add the html via source edit in the text component). 

 

If the AEM author uses the content finder, the link ends up being something like this (example: /test1.html) and the test1.html page will show as being referenced, but if the AEM author adds the domain name in the link (example: https://www.test.com/test1.html), the test1.html page does not show up as being referenced.

 

Is there a way for the "referencing" to recognize links that also include the domain name?

 

Regards,

Jerry

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

 

When the links are authored with absolute URL (i.e., with domain) it's considered as the external domain. So there is no way you can find out the reference. But if the URL is authored as the relative URL i.e., without the domain, it's considered as the internal URL and we can find the reference.

 

Thanks!

2 replies

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
September 14, 2021

Hi @jerryle 

 

When the links are authored with absolute URL (i.e., with domain) it's considered as the external domain. So there is no way you can find out the reference. But if the URL is authored as the relative URL i.e., without the domain, it's considered as the internal URL and we can find the reference.

 

Thanks!

jerryleAuthor
Level 2
September 14, 2021

Thanks for confirming.....only recourse seems to be to train/inform our AEM authors to always use relative links when linking to internal content.

Asutosh_Jena_
Community Advisor
Community Advisor
September 14, 2021

That's correct. While authoring the links we need to take special care.

 

Thanks!

Shubham_borole
Community Advisor
Community Advisor
September 14, 2021

Hello @jerryle 

Agree with @asutosh_jena_  that the links with domain name will be considered as external links and hence won't be recognized as reference. 

One solution that I have seen implemented is a js/jquery check on the dialog authoring that if the authored link contains say "content/project/en" with a domain or something that recognizes it as an internal link, remove the domain so that as part of authoring only internal link is saved. Else add a pop up for authors for them as a warning that they seem to be authoring with internal urls with domain.

Just a suggestion..

jerryleAuthor
Level 2
September 14, 2021

Great idea. Thank you. I have forwarded your suggestions to our programmer.