Structured Data Testing Tool > Website Schema > There is an error in your Sitelinks Search Box template: OFF_DOMAIN

Dear Stackoverflow Community,

I am trying to implement schema markup (WebSite type):

    <script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "WebSite",
        "url": "Page URL",
        "potentialAction": {
            "@type": "SearchAction",
            "target": "https://www.finelovedolls.com/fr/?s={search_term}&post_type=product",
            "query-input": "required name=search_term"
            }
    }

It seems correct as the “target:” is what my website returns as a variable URL when using the search box.

however I get the following mistake on Google SDTT results:

1 ERROR
@type: WebSite
url: {{Page URL}}
potentialAction:
@type: SearchAction
target  
@type: EntryPoint   

**URL Template: https://www.finelovedolls.com/fr/?s=
{search_term}&post_type=product (There is an error in your Sitelinks Search 
Box template: OFF_DOMAIN.)**
query-input
@type: PropertyValueSpecification
valueName: search_term
valueRequired: http://schema.org/True

I have not been able to find a solution with these keywords on Google so far

Any help would be much appreciated!

Thank you

Read more here: Structured Data Testing Tool > Website Schema > There is an error in your Sitelinks Search Box template: OFF_DOMAIN

Leave a Reply

Your email address will not be published. Required fields are marked *