Incorrect breadcrumbs for search page with no string
-
Hi, I think I have encountered an issue with breadcrumbs. Or to be precise, Google Search Console started to complain recently.
The error given by Google is:
Either “name” or “item.name” should be specifiedAnd it is right, the name is not present. It relates to search page with empty (“”) search string… not sure how Google got there.
https://www.pastel.cz/page/3/?sIf I search any non-empty string, the breacrumbs are now including the name properly, i.e.
https://www.pastel.cz/page/3/?s=testI will probably disallow indexing on search pages anyway and possible remove breadcrumbs, so here is the copy of the breadcrumbs. The issue is with the last item.
{"@type":"BreadcrumbList","@id":"https:\/\/www.pastel.cz\/page\/3\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.pastel.cz\/#listItem","position":1,"item":{"@type":"WebPage","@id":"https:\/\/www.pastel.cz\/","name":"Home","description":"Professional photographer, Brno and the whole Czech Republic: Wedding photography, own studio, product photo, bussiness portraits and corporate events. - Page 3","url":"https:\/\/www.pastel.cz\/"},"nextItem":"https:\/\/www.pastel.cz\/page\/3\/#listItem"},{"@type":"ListItem","@id":"https:\/\/www.pastel.cz\/page\/3\/#listItem","position":2,"item":{"@type":"WebPage","@id":"https:\/\/www.pastel.cz\/page\/3\/","url":"https:\/\/www.pastel.cz\/page\/3\/"},"previousItem":"https:\/\/www.pastel.cz\/#listItem"}]},{"@type":"SearchResultsPage","@id":"https:\/\/www.pastel.cz\/page\/3\/#searchresultspage","url":"https:\/\/www.pastel.cz\/page\/3\/","name":"| V\u00edt Koval\u010d\u00edk - Page 3","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.pastel.cz\/#website"},"breadcrumb":{"@id":"https:\/\/www.pastel.cz\/page\/3\/#breadcrumblist"}}
Just for the comparison, here are breadcrumbs when searching for “test”:
{"@type":"BreadcrumbList","@id":"https:\/\/www.pastel.cz\/page\/3\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.pastel.cz\/#listItem","position":1,"item":{"@type":"WebPage","@id":"https:\/\/www.pastel.cz\/","name":"Home","description":"Professional photographer, Brno and the whole Czech Republic: Wedding photography, own studio, product photo, bussiness portraits and corporate events. - Page 3","url":"https:\/\/www.pastel.cz\/"},"nextItem":"https:\/\/www.pastel.cz\/page\/3\/#listItem"},{"@type":"ListItem","@id":"https:\/\/www.pastel.cz\/page\/3\/#listItem","position":2,"item":{"@type":"WebPage","@id":"https:\/\/www.pastel.cz\/page\/3\/","name":"test","url":"https:\/\/www.pastel.cz\/page\/3\/"},"previousItem":"https:\/\/www.pastel.cz\/#listItem"}]},{"@type":"SearchResultsPage","@id":"https:\/\/www.pastel.cz\/page\/3\/#searchresultspage","url":"https:\/\/www.pastel.cz\/page\/3\/","name":"test | V\u00edt Koval\u010d\u00edk - Page 3","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.pastel.cz\/#website"},"breadcrumb":{"@id":"https:\/\/www.pastel.cz\/page\/3\/#breadcrumblist"}}
- The topic ‘Incorrect breadcrumbs for search page with no string’ is closed to new replies.