且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

AMP页面上的内部链接

更新时间:2023-12-03 08:09:58

Google AMP Viewer内部不支持AMP到AMP的链接.从理论上讲,可以链接到AMP缓存上的版本(使用

Officially, AMP-to-AMP linking is not supported inside the Google AMP Viewer. Theoretically, it's possible to link to the version on the AMP cache (using the AMP Cache URL scheme https://example-com.cdn.ampproject.org/c/s/example.com).

但是,使用AMP的惯用方式是链接回自己来源的规范版本(或AMP版本).

However, the idiomatic way to use AMP would be to link back to the canonical version (or AMP version) on your own origin.