1

We are using Sitecore 10 and SXA. In our site, we have some composite component like accordion, tabs etc. When we are searching in google , we can see some links to our datasource items as well, like for tab 1, tab 2 items under composite datasource items. What could be the reason?

3
  • Can you check your sitemap xml by using the URL yoursiteurl.com/sitemap.xml if you are able to see those datasource items? Commented Jun 9, 2022 at 7:00
  • Yeah...checked the Sitemap XML. Don't have those items in it Commented Jun 9, 2022 at 7:16
  • Can you share the html that is being output by your component? You have links to those items somewhere that the crawler is able to see.
    – Richard Seal
    Commented Jun 9, 2022 at 18:00

1 Answer 1

1

Normally content of composite components should not be linked anywhere. Instead it should be rendered inside generated html of page which uses that component.

Exception here is overlay, where in fact overlay content pages are linked from regular pages.

There is no way to tell really how your pages got indexed. If you want to avoid this for future, just add

<meta name="robots" content="noindex, nofollow">

to the Views\Layout\Composite Component Layout.cshtml (and other composite layout files Views\Layout folder) and to Views\OverlayLayout\OverlayMvcLayout.cshtml in <head> tag.

That should make sure that composite datasource items will never be indexed by bots.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.