Gmail收件箱查看操作 - "需要网址字段的值."

Are*_*rel 6 gmail html-email microdata schema.org google-schemas

我正在尝试为重置密码的Gmail收件箱操作获取正确的标记.我正在使用电子邮件标记测试程序.

我的标记看起来像这样:

<div itemscope itemtype="http://schema.org/EmailMessage">
  <meta itemprop="description" content="Reset password instructions"/>
  <div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction">
    <meta itemprop="target" content="https://www.example.com/users/password/new?token=123"/>
    <meta itemprop="name" content="Reset Your Password"/>
  </div>
  <meta itemprop="description" content="Visit our site to reset your password."/>
</div>
Run Code Online (Sandbox Code Playgroud)

上面的标记返回错误:

url字段的值是必需的.

但我无法弄清楚该url字段应如何插入标记.甚至谷歌的例子都没有通过他们的标记验证器.

uno*_*nor 5

(不确定这是否只是他们的测试工具的错误,或者这是否真的是一个没有记录的新要求。)

除了url财产之外,您还可以提供target财产。另请注意,如果值为 URL ,则必须使用link元素(而不是meta元素)。

所以它会是:

<link itemprop="target url" href="https://www.example.com/users/password/new?token=123" />
Run Code Online (Sandbox Code Playgroud)

这不会在 Google 的电子邮件标记测试器中报告任何错误。