时,$ {documentReferrer}为空。通过AMP文档(https://github.com/ampproject/amphtml/blob/master/spec/amp-var-substitutions.md#document-referrer)查看documentReferrer
变量应该反映JS document.referrer
。当document.referrer为“https://www.google.com/”
虽然documentReferrer
似乎汇报其他域的正确值(如:www.twitter.com,t.co,linkedin.com等)时,页面的document.referrer
值是“https://www.google.com/” documentReferrer
是空的。我找不到任何文件表明www.google.com域名有任何额外的警告。
什么是你期望的结果? – noogui
基于文档,我期望AMP文章的'documentReferrer'在引用URL时是''https://www.google.com/“'。 –