Making WordPress.org

Opened 4 weeks ago

Closed 4 weeks ago

#8014 closed defect (bug) (fixed)

block configuration object link shows Page not found

Reported by: opurockey's profile opurockey Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Handbooks Keywords:
Cc:

Description

While I am browsing the Block API Reference - Transforms, under Shortcode->attributes section, [block configuration object]https://developer.wordpress.org/block-editor/reference-guides/block-api/block-transforms/block-registration.md link is redirecting us to a not found page.

Attachments (1)

Screenshot.png (270.1 KB) - added by opurockey 4 weeks ago.

Download all attachments as: .zip

Change History (4)

@opurockey
4 weeks ago

#1 @dd32
4 weeks ago

  • Component changed from API to Handbooks
  • Owner set to dd32
  • Status changed from new to accepted

Thanks for reporting this @opurockey, the rest of this comment is me documenting the where/how/why of the brokenness.

Direct link to broken link:
https://developer.wordpress.org/block-editor/reference-guides/block-api/block-transforms/#shortcode:~:text=attributes%20(object%2C%20optional)%3A%20object%20representing%20where%20the%20block%20attributes%20should%20be%20sourced%20from%2C%20according%20to%20the%20attributes%20shape%20defined%20by%20the%20block%20configuration%20object.

Source in Gutenberg handbook:
https://github.com/WordPress/gutenberg/blob/eb82aa70c00768f5f64770cc702fd3735cc03878/docs/reference-guides/block-api/block-transforms.md?plain=1#L274

[block configuration object](./block-registration.md)

Looks like the ./ syntax in the link not being transformed:

<a href="./block-registration.md">

which is why it's directing to the incorrect page.

#2 @dd32
4 weeks ago

After looking at the markdown importers, it's not entirely easy to fix this properly, without a lot more work.

I've PR'd Gutenberg docs to fix the three links instead for now:
https://github.com/WordPress/gutenberg/pull/70473

#3 @dd32
4 weeks ago

  • Resolution set to fixed
  • Status changed from accepted to closed

https://github.com/WordPress/gutenberg/pull/70473 has been merged, and these links have been fixed.

Note: See TracTickets for help on using tickets.