Table of Contents block does not include links when inserted on a template #88592
Labels
Customer Report
Issues or PRs that were reported via Happiness. Previously known as "Happiness Request".
[Feature] Core Blocks
Blocks that come with Gutenberg.
[Feature Group] Editor Experience
Features related to Gutenberg integration on WordPress.com.
[Platform] Simple
[Pri] Normal
Schedule for the next available opportuinity.
[Product] WordPress.com
All features accessible on and related to WordPress.com.
[Status] Core Fix Needed
A fix within the Core WordPress or Gutenberg project is required to resolve this issue.
[Status] Priority Review Triggered
Quality squad has been notified of this issue in #dotcom-triage-alerts
Triaged
To be used when issues have been triaged.
[Type] Bug
Quick summary
The Table of Contents block should automatically create an ordered list of links to headers on the current content. When inserted on a template in the site editor, the headings are shown in a list of plain text instead.
Steps to reproduce
What you expected to happen
Table of Contents block's list items should automatically include links to the corresponding headings.
What actually happened
On templates, the list is plain text (
<span>
) instead of links (<a>
).Impact
Some (< 50%)
Available workarounds?
No but the platform is still usable
Platform (Simple and/or Atomic)
Simple
Logs or notes
Unclear if this is an intentional decision, considering Table of Contents are probably intended to be used for individual pieces of content instead of templates. However, for some templates (e.g. Front Page, Blog Home, or custom templates created for a specific post or page), it can make sense to include a linked Table of Contents as the template is more like a post/page than a multi-use template in those cases.
Initial report: 7830208-zd-a8c
The text was updated successfully, but these errors were encountered: