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


Well-known member
Didn't know where else to put this since it affects the main 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.

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? 🤔

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

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