Problem with searchbox in SEO
Solved
Technical Support
-
Hello!
I'm trying to create searchbox for google search result, but everytime have error with
{query}
inurlTemplate
"urlTemplate": "https://example.com/search?q={query}"
The forum (maybe benchpress) analyzes this value
{query}
in the script code and returns an empty value, because of this, the google console for verification code shows an error because there is no this value {query} in the script."urlTemplate": "https://example.com/search?q="
Is it possible to prohibit parsing
{query}
in a certain line of code on the forum? In this case, the forum will not replace{query}
to an empty value and google will be able to get it without error.Docs: https://developers.google.com/search/docs/appearance/structured-data/sitelinks-searchbox?hl=en
-
Try
\{query}
or{"{query}"}
-
Copyright © 2024 NodeBB | Contributors