Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
302 views
in Technique[技术] by (71.8m points)

amp html - links to other AMP pages in an AMP article

I have several non-AMP pages within a topic. My non-AMP pages will have links within the body of the article to other non-AMP pages in the same topic. Should the AMP versions of the pages link to the other AMP pages in the same topic or should all links in the articles point to the non-AMP (canonical) versions of the pages?

Using the following link formats for the example:  
Non-AMP version: /muffins/blueberry/  
AMP version: /muffins/blueberry/amp/

/muffins/blueberry/ has a link to /muffins/strawberry/
Should /muffins/blueberry/amp/ link to /muffins/strawberry/amp/ or to /muffins/strawberry/?

Or said another way, if a visitor comes to your site on an AMP page, do you continue to offer them links to other AMP versions of your pages or should you switch them over to the full pages as soon as possible?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

As far as I know, it is up to you to decide since no where in the docs does it state that we must have links leading to one or the other. If it helps, we decided to have all links within the AMP page link back to the canonical page and our pages are appearing in the carousel perfectly fine.

If you look at the AMP HTML Specs, it only states that links cannot begin with javascript:.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...