Making WordPress.org

Opened 3 years ago

Closed 3 years ago

#3780 closed defect (fixed)

Gutenberg Docs: relative links that point to a specific heading inside Gutenberg handbook pages are broken

Reported by: designsimply Owned by:
Milestone: Priority: normal
Component: Handbooks Keywords: neso


We don't account for same page links when we remove the .md extension from relative links.

For example, [covered separately](../docs/block-api/block-edit-save.md) works but [wide alignment](../docs/extensibility/theme-support.md#wide-alignment) results in a broken link to "wide alignment" at https://wordpress.org/gutenberg/handbook/block-api/#supports-optional

Ref https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/inc/docs-importer.php#L278

See https://github.com/WordPress/gutenberg/issues/9387

Change History (3)

#1 @tellyworth
3 years ago

  • Keywords neso added

#2 @dd32
3 years ago

In 7658:

Gutenberg Docs Importer: Attempt to handle relative .md links with anchor tags.

See #3780.

#3 @dd32
3 years ago

  • Keywords needs-patch removed
  • Resolution set to fixed
  • Status changed from new to closed

I'm going to close this after [7658] above, if this has broken any links, please re-open this ticket

I've done basic testing with different URLs that I could think of and it seemed to handle them properly, but I'm not super familiar with the links actually used within the handbook source.

Note: See TracTickets for help on using tickets.