Google SDTT error: “All values provided for http://www.example.com/ must have the same domain.”

前端 未结 7 1556
太阳男子
太阳男子 2020-12-31 07:03

When I copy/paste JSON-LD example from Google Documentation (code-snippet below) I get an error in the Structured Data Testing Tool:

http://www.

相关标签:
7条回答
  • 2020-12-31 07:47

    One reason this happens is because of the testing tool's UX. It seems kinda buggy to me.

    First run a fresh test on a domain. You will see the Organization url is correct and there are no warnings since all matches.

    Now, click in the source code (left pane) and add a single space somewhere harmless. You will see the domain disappears in the top bar:

    You will also see the warning appear. Hitting "refresh" or starting a fresh test will correct the error again. I'm guessing the reason they do this is because when manually editing schema you are no longer, technically, reflecting the source from a domain.

    0 讨论(0)
提交回复
热议问题