Invalid Search From Google (not a XF forum issue, but XF main page issue)

Kevin

Well-known member
Didn't know where else to put this since it affects the main xenforo.com page and not XF itself.

The Good News: When searching in Google for "XenForo" the powers that be at Google have enabled the site search box for the domain.
1636928512000.webp

The Bad News: Any search request ends up with an error. Maybe a missing opensearch.xml or one that needs to be updated on the server? 🤔

1636928614776.webp
1636928678232.webp
 
Yeah... not sure why they're displaying a search box. We don't really have anything searchable on the front end.
 
HTML:
        <script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "WebSite",
            "url": "https://xenforo.com/",
            "potentialAction": {
                "@type": "SearchAction",
                "target": "https://xenforo.com/search/search?keywords={search_keywords}",
                "query-input": "required name=search_keywords"
            }
        }
        </script>

Eddie Murphy Laughing GIF
 
It looks like you might be able to alter the search schema to change the target to use the community search URL, or opt out of it completely as some sites have done

 
Solution in the case of the XF site is to simply disable searching:

View attachment 260234
That'll get rid of the schema markup but since Google has already turned it on you may want to either put a redirect in place to the forums or add the meta tag to request no search box (but the redirect may be the better choice).

Having Google deign the domain worthy to have it enabled is a nice problem to have. 👍
 
They've turned it on because of the schema markup. I'll keep an eye on it but it should sort itself out.
 
Top Bottom