Div vs Span on /bin/wcm/references servlet execution | Community
Skip to main content
Peter_Puzanovs
Community Advisor
Community Advisor
October 16, 2015
Solved

Div vs Span on /bin/wcm/references servlet execution

  • October 16, 2015
  • 1 reply
  • 1386 views

/bin/wcm/references is the servlet that tells you whether certain page is used in other pages.

Recently, have been looking into a bug where the servlet returned an empty results set.

Further investigation has found that whenever path is contained within the <strong or <span the wcm servlet does not see path as reference.

Example that does not work:

<p><span data-path="/content/myapp/surname_change">P</span></p> 

However, when we have path as a <div it immediately starts working.

Example that does work:

<p><div data-path="/content/myapp/surname_change">P</div></p> 

Is there a way to tell /wcm/references servlet to look for <span html elements as well as <div elements ?

 

Kindest Regards,

Peter

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 Sham_HC

Internally it does is search for query[1]. Sounds like indexing is not done for content & doubt it is related to span or etc..  I would take the route of checking index configuration & verify what is happening there. Customize index configuration accordingly.  Reach out to official support team if you find difficult in finding what is happening. 

[1]  //*[jcr:contains(., '"<path>"')]

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Internally it does is search for query[1]. Sounds like indexing is not done for content & doubt it is related to span or etc..  I would take the route of checking index configuration & verify what is happening there. Customize index configuration accordingly.  Reach out to official support team if you find difficult in finding what is happening. 

[1]  //*[jcr:contains(., '"<path>"')]