Skip to content

Link to Attributes page in block API has been lost from documentation #23978

Closed

Description

@daledesilva

Describe the bug
A clear and concise description of what the bug is.

To reproduce
Steps to reproduce the behavior:

  1. Go to the API Reference contents in github.
  2. Click on 'Attributes'
  3. Go to the API Reference contents on developer.wordpress.org
  4. Click on 'Attributes'

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.

Activity

  1. added
    Needs Testing
    [Type] Developer Documentation
    on Jul 16, 2020
  2. talldan commented on Jul 16, 2020

    @talldan
    Contributor

    @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.

  3. daledesilva commented on Jul 16, 2020

    @daledesilva
    Author

    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...

    1. Go to the link you posted.
    2. Note that the menu and breadcrumb trail say that it is in the Block API reference section.
    3. Now click on the Edit button next to the title to go to its github page.
    4. Note that the breadcrumb trail in github indicates it is actually a page from tutorials/create-block/, not from the Block API reference section.

    If this doesn't clarify, please post a screenshot of what you see after step 2 and step 4 in my first post.

  4. talldan commented on Jul 16, 2020

    @talldan
    Contributor

    Ah, yes, you're right.

    My bad, I wasn't looking at the page contents, just at the URL and breadcrumb.

  5. removed
    Needs Testing
    on Jul 16, 2020
  6. talldan commented on Jul 16, 2020

    @talldan
    Contributor

    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.

  7. added
    Good First Issue
    on Jul 16, 2020
  8. dknieriem commented on Jul 24, 2020

    @dknieriem

    Hi all, it appears there is a duplicate slug for block-attributes in the docs manifest

    I'll make the slugs unique and submit a pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First Issue[Type] Developer Documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions