You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Link to Attributes page in block API has been lost from documentation #23978
Both contents pages come from the same github file but for some reason the one on the wordpress front end is mislinked to a different file. This is the file in github it's mistakenly linking to.
Expected behavior
The Attributes link on the API Reference contents page shown in wordpress should link to the Attributes page inside the API Reference folder, not in the tutorials folder.
Additional context
This issue appeared in the last 24 hours of me posting this.
The link looks like it goes to the right place, but it seems as thought the block-api/block-attributes page has possibly been overwritten when the docs were built, maybe because the two pages have the same slug in the manifest:
Activity
talldan commentedon Jul 16, 2020
@daledesilva I'm not able to reproduce that. For me it links to https://developer.wordpress.org/block-editor/developers/block-api/block-attributes/ on the developer.wordpress.org site.
Not sure if it could be a caching issue for one of us.
daledesilva commentedon Jul 16, 2020
Thanks @talldan . I've cleared cache and tried in a an incognito window but it's definitely happening.
Both pages have a title of Block Attributes (or Attributes) but they're not the same page - It makes it a little easy to miss.
Another way to see the error is...
If this doesn't clarify, please post a screenshot of what you see after step 2 and step 4 in my first post.
talldan commentedon Jul 16, 2020
Ah, yes, you're right.
My bad, I wasn't looking at the page contents, just at the URL and breadcrumb.
talldan commentedon Jul 16, 2020
The link looks like it goes to the right place, but it seems as thought the block-api/block-attributes page has possibly been overwritten when the docs were built, maybe because the two pages have the same slug in the manifest:
Probably an easy fix, so I'll label this a good first issue.
dknieriem commentedon Jul 24, 2020
Hi all, it appears there is a duplicate slug for block-attributes in the docs manifest
gutenberg/docs/manifest.json
Line 106 in bd4a6b7
gutenberg/docs/manifest.json
Line 550 in 5cef528
I'll make the slugs unique and submit a pull request