Skip to content

Add support for Text Fragments in AMP #32139

@sebsg

Description

@sebsg

Describe the new feature or change to an existing feature you'd like to see

Chrome has implemented this new W3C draft spec about Text Fragments that allows linking to specific parts of a web page. Upon opening the link the browser will scroll-to and highlight the specified section.

While this works on most sites, one big issue with the feature currently is that it doesn't work on AMP pages. For example, the text fragment anchor part of the URL seems stripped from most AMP pages when loaded. From my understanding of AMP, there might be other issues even if the fragment was not stripped.

Some examples:

There seems to be a way to make this work since some pages loaded from a search results page work (e.g. search for "when is ios 14.3 coming out")

Would it be possible to add support for scroll-to text fragments?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions